Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
YourOpinionsAreWRONG

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×