Skip to content

Commit

Permalink
Enable DisableAlphaTest feature inside Material blocks. Needed for …
Browse files Browse the repository at this point in the history
…some custom materials that need to do stuff with the material alpha.
  • Loading branch information
nashmuhandes committed Sep 13, 2024
1 parent 98e58bf commit 4b2cdd3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/r_data/gldefs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 4b2cdd3

Please sign in to comment.