Jump to content

Coding shader into Doom WAD


Recommended Posts

I recently downloaded a film grain shader for a doom WAD but I've no idea how to code it in the actual WAD. HELP!!!

 

Also, is it possible to code the shader in such a way that the amount of grain changes from level to level?

 

 

GZDOOM builder with UDMF

Share this post


Link to post

Is it GLSL?

 

For only putting a shader:

First you have to put the shader on a separate lump in the wad. Just copy paste the shader code on a lump.

Then you have to define the shader on a GLDEFS lump, like this:

HardwareShader PostProcess scene {
	Name "ShaderName"
	Shader "SHDRLUMP" 330 //Replace SHDRLUMP with the shader lump name. the 330 is the GLSL version, do not change it
	Enabled //Shader enabled by default
}

And thats it, but by some reason it only works on ZIP files, i tried making a wad but GZDoom didnt wanted to load the shader as a lump.

 

Share this post


Link to post
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...