]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Add Baker's fix for spplying default lightstyle to q3bsp
authorJames O'Neill <hemebond@gmail.com>
Tue, 19 Dec 2023 15:48:59 +0000 (00:48 +0900)
committerJames O'Neill <hemebond@gmail.com>
Tue, 19 Dec 2023 15:48:59 +0000 (00:48 +0900)
gl_rmain.c

index e5bd8576989c4c0aca27ce7d7577075a21343f76..28806317dba62ddf78b7cdda947a11ea96a0baa3 100644 (file)
@@ -5489,6 +5489,11 @@ void R_UpdateVariables(void)
        if (r_refdef.scene.worldmodel)
        {
                r_refdef.scene.lightmapintensity *= r_refdef.scene.worldmodel->lightmapscale;
+
+               // Apply the default lightstyle to the lightmap even on q3bsp
+               if (cl.worldmodel && cl.worldmodel->type == mod_brushq3) {
+                       r_refdef.scene.lightmapintensity *= r_refdef.scene.rtlightstylevalue[0];
+               }
        }
        if (r_showsurfaces.integer)
        {