- Added 'enabled' property for PP shaders, to automatically enable them without ZScript

This commit is contained in:
Rachael Alexanderson 2017-07-13 05:57:12 -04:00
parent c38d0c1637
commit 7728875a7f
1 changed files with 4 additions and 0 deletions

View File

@ -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);