1
0
Fork 0
forked from fte/fteqw

trying to fix bsp alpha

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@175 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2004-09-07 23:21:09 +00:00
parent 80975e0ce9
commit 67ea52427e

View file

@ -320,7 +320,7 @@ static void PPL_BaseTextureChain(msurface_t *first)
// Binds world to texture env 0
GL_SelectTexture(mtexid0);
GL_Bind (t->gl_texturenum);
if (t->alphaed)
if (t->alphaed || currententity->alpha < 1)
{
glEnable(GL_BLEND);
glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
@ -858,6 +858,7 @@ void PPL_BaseTextures(model_t *model)
glShadeModel(GL_FLAT);
currentmodel = model;
currententity->alpha = 1;
if (model == cl.worldmodel && skytexturenum>=0)
{