mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 15:22:15 +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)
|
if (parsedType != PostProcessUniformType::Undefined)
|
||||||
shaderdesc.Uniforms[uniformName].Type = parsedType;
|
shaderdesc.Uniforms[uniformName].Type = parsedType;
|
||||||
}
|
}
|
||||||
|
else if (sc.Compare("enabled"))
|
||||||
|
{
|
||||||
|
shaderdesc.Enabled = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
PostProcessShaders.Push(shaderdesc);
|
PostProcessShaders.Push(shaderdesc);
|
||||||
|
|
Loading…
Reference in a new issue