Enable DisableAlphaTest feature inside Material blocks. Needed for some custom materials that need to do stuff with the material alpha.

This commit is contained in:
nashmuhandes 2024-09-13 16:56:55 +08:00
commit 4b2cdd375a

View file

@ -1361,6 +1361,12 @@ class GLDefsParser
sc.MustGetString();
usershader.shader = sc.String;
}
else if (sc.Compare("disablealphatest"))
{
tex->SetTranslucent(true);
if (usershader.shader.IsNotEmpty())
usershader.disablealphatest = true;
}
else if (sc.Compare("texture"))
{
sc.MustGetString();