out->basematerialflags |= MATERIALFLAG_WATER | MATERIALFLAG_WATERALPHA;
else
out->basematerialflags |= MATERIALFLAG_WALL;
- if (shader->textureflags & Q3TEXTUREFLAG_ALPHATEST)
+ if (shader->layers[0].alphatest)
out->basematerialflags |= MATERIALFLAG_ALPHATEST | MATERIALFLAG_TRANSPARENT;
out->customblendfunc[0] = GL_ONE;
out->customblendfunc[1] = GL_ZERO;
else
out->basematerialflags |= MATERIALFLAG_CUSTOMBLEND | MATERIALFLAG_FULLBRIGHT | MATERIALFLAG_BLENDED | MATERIALFLAG_TRANSPARENT;
}
- if (shader->layers[0].alphatest)
- shader->textureflags |= Q3TEXTUREFLAG_ALPHATEST;
}
if (!shader->lighting)
out->basematerialflags |= MATERIALFLAG_FULLBRIGHT;
#define Q3TEXTUREFLAG_TWOSIDED 1
#define Q3TEXTUREFLAG_AUTOSPRITE 2
#define Q3TEXTUREFLAG_AUTOSPRITE2 4
-#define Q3TEXTUREFLAG_ALPHATEST 8
#define Q3TEXTUREFLAG_NOPICMIP 16
typedef struct q3mbrush_s