]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
CSQC: disable lighting in R_EndPolygon()
authorbones_was_here <bones_was_here@xonotic.au>
Sun, 2 Jun 2024 13:23:17 +0000 (23:23 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Sun, 2 Jun 2024 13:23:17 +0000 (23:23 +1000)
It's not supported and causes visual problems.

Fixes https://gitlab.com/xonotic/darkplaces/-/issues/419

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
clvm_cmds.c

index 96551b920f5cdb98becf83af75bb26c89d2dda05..84834d9bfb8893aadc2150f797cc0641c8879baa 100644 (file)
@@ -4231,7 +4231,7 @@ static void VM_CL_R_PolygonEnd (prvm_prog_t *prog)
        }
 
        // create the surface, looking up the best matching texture/shader
-       materialflags = MATERIALFLAG_WALL;
+       materialflags = MATERIALFLAG_WALL | MATERIALFLAG_FULLBRIGHT;
        if (csqc_polygons_defaultmaterial_nocullface.integer)
                materialflags |= MATERIALFLAG_NOCULLFACE;
        if (hascolor)