mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-01-31 21:30:36 +00:00
Simplify SURF_ALPHATEST code
Fix for https://github.com/yquake2/yquake2/issues/956
This commit is contained in:
parent
d9f2cea1e7
commit
cfe2f27fae
4 changed files with 1 additions and 16 deletions
|
@ -572,10 +572,6 @@ R_DrawAlphaSurfaces(void)
|
|||
{
|
||||
glColor4f(intens, intens, intens, 0.66);
|
||||
}
|
||||
else if (s->texinfo->flags & SURF_ALPHATEST)
|
||||
{
|
||||
glColor4f(intens, intens, intens, 0.99);
|
||||
}
|
||||
else
|
||||
{
|
||||
glColor4f(intens, intens, intens, 1);
|
||||
|
|
|
@ -370,10 +370,7 @@ GL3_DrawAlphaSurfaces(void)
|
|||
{
|
||||
alpha = 0.666f;
|
||||
}
|
||||
else if (s->texinfo->flags & SURF_ALPHATEST)
|
||||
{
|
||||
alpha = 0.999f;
|
||||
}
|
||||
|
||||
if(alpha != gl3state.uni3DData.alpha)
|
||||
{
|
||||
gl3state.uni3DData.alpha = alpha;
|
||||
|
|
|
@ -370,10 +370,6 @@ GL4_DrawAlphaSurfaces(void)
|
|||
{
|
||||
alpha = 0.666f;
|
||||
}
|
||||
else if (s->texinfo->flags & SURF_ALPHATEST)
|
||||
{
|
||||
alpha = 0.999f;
|
||||
}
|
||||
|
||||
if(alpha != gl4state.uni3DData.alpha)
|
||||
{
|
||||
|
|
|
@ -306,10 +306,6 @@ R_DrawAlphaSurfaces(void)
|
|||
{
|
||||
color[3] = 0.66f;
|
||||
}
|
||||
else if (s->texinfo->flags & SURF_ALPHATEST)
|
||||
{
|
||||
color[3] = 0.99f;
|
||||
}
|
||||
|
||||
if (s->flags & SURF_DRAWTURB)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue