From 6231281e5e119c6eed21b40a1861762c614d5396 Mon Sep 17 00:00:00 2001 From: Spoike Date: Tue, 14 Mar 2006 01:28:22 +0000 Subject: [PATCH] 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 --- engine/gl/gl_warp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/engine/gl/gl_warp.c b/engine/gl/gl_warp.c index 3236eccb9..dfe90c3aa 100644 --- a/engine/gl/gl_warp.c +++ b/engine/gl/gl_warp.c @@ -114,6 +114,9 @@ void EmitWaterPolys (msurface_t *fa, float basealpha) mb.shader = fa->texinfo->texture->shader; mb.fog = NULL; 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); return; }