From: James O'Neill Date: Tue, 19 Dec 2023 15:48:59 +0000 (+0900) Subject: Add Baker's fix for spplying default lightstyle to q3bsp X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=88c327860915994aa345724a0373e0e1c0950c2a;p=xonotic%2Fdarkplaces.git Add Baker's fix for spplying default lightstyle to q3bsp --- diff --git a/gl_rmain.c b/gl_rmain.c index e5bd8576..28806317 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -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) {