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:
parent
98e58bf340
commit
4b2cdd375a
1 changed files with 6 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue