Fix a bug where shaded wateralpha surfaces were not being drawn.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2114 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2006-03-14 01:28:22 +00:00
parent bfa9db357b
commit 6231281e5e

View file

@ -114,6 +114,9 @@ void EmitWaterPolys (msurface_t *fa, float basealpha)
mb.shader = fa->texinfo->texture->shader; mb.shader = fa->texinfo->texture->shader;
mb.fog = NULL; mb.fog = NULL;
mb.mesh = fa->mesh; mb.mesh = fa->mesh;
r_worldentity.shaderRGBAf[3] = basealpha;
R_PushMesh(mb.mesh, mb.shader->features);
r_worldentity.shaderRGBAf[3] = 1;
R_RenderMeshBuffer(&mb, false); R_RenderMeshBuffer(&mb, false);
return; return;
} }