mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
- Added 'enabled' property for PP shaders, to automatically enable them without ZScript
This commit is contained in:
parent
c38d0c1637
commit
7728875a7f
1 changed files with 4 additions and 0 deletions
|
@ -723,6 +723,10 @@ void gl_ParseHardwareShader(FScanner &sc, int deflump)
|
|||
if (parsedType != PostProcessUniformType::Undefined)
|
||||
shaderdesc.Uniforms[uniformName].Type = parsedType;
|
||||
}
|
||||
else if (sc.Compare("enabled"))
|
||||
{
|
||||
shaderdesc.Enabled = true;
|
||||
}
|
||||
}
|
||||
|
||||
PostProcessShaders.Push(shaderdesc);
|
||||
|
|
Loading…
Reference in a new issue