From b45f0c657399c73644afc57aebc9cc0ec4e4ea05 Mon Sep 17 00:00:00 2001 From: havoc Date: Wed, 5 Nov 2003 04:14:55 +0000 Subject: [PATCH] added r_fullbright (and EF_FULLBRIGHT) support to q3bsp rendering git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3625 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_rsurf.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gl_rsurf.c b/gl_rsurf.c index 66657665..455f96aa 100644 --- a/gl_rsurf.c +++ b/gl_rsurf.c @@ -1948,6 +1948,12 @@ void R_Q3BSP_DrawFace(entity_render_t *ent, q3mface_t *face) face->visframe = r_framecount; if (r_shadow_realtime_world.integer) R_Q3BSP_DrawFace_OpaqueWall_Pass_OpaqueGlow(ent, face); + else if ((ent->effects & EF_FULLBRIGHT) || r_fullbright.integer) + { + R_Q3BSP_DrawFace_OpaqueWall_Pass_Texture(ent, face); + if (face->texture->skin.glow) + R_Q3BSP_DrawFace_OpaqueWall_Pass_Glow(ent, face); + } else if (face->lightmaptexture) { if (r_textureunits.integer >= 2 && gl_combine.integer) -- 2.39.2