From: uis Date: Fri, 16 Aug 2024 21:43:23 +0000 (+0300) Subject: Added another gl_lightmaps mode X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=dfadaf24f8a27f6e5d8ccee56c5d14026da287f7;p=xonotic%2Fdarkplaces.git Added another gl_lightmaps mode --- diff --git a/gl_rmain.c b/gl_rmain.c index 9b460227..90cba501 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -8354,7 +8354,7 @@ texture_t *R_GetCurrentTexture(texture_t *t) // lightmaps mode looks bad with dlights using actual texturing, so turn // off the colormap and glossmap, but leave the normalmap on as it still // accurately represents the shading involved - if (gl_lightmaps.integer) + if (gl_lightmaps.integer && !(t->currentmaterialflags & MATERIALFLAG_MODELLIGHT && gl_lightmaps.integer > 2)) { t->basetexture = r_texture_grey128; t->pantstexture = r_texture_black;