]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Added another gl_lightmaps mode
authoruis <uis9936@gmail.com>
Fri, 16 Aug 2024 21:43:23 +0000 (00:43 +0300)
committeruis <uis9936@gmail.com>
Fri, 16 Aug 2024 21:43:23 +0000 (00:43 +0300)
gl_rmain.c

index 9b460227011ed6dda308b15537d4f90a802e96de..90cba5018f20697580be1f39f941b46d1ec0c6bf 100644 (file)
@@ -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;