From dfadaf24f8a27f6e5d8ccee56c5d14026da287f7 Mon Sep 17 00:00:00 2001 From: uis Date: Sat, 17 Aug 2024 00:43:23 +0300 Subject: [PATCH] Added another gl_lightmaps mode --- gl_rmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2