From 88c327860915994aa345724a0373e0e1c0950c2a Mon Sep 17 00:00:00 2001 From: James O'Neill Date: Wed, 20 Dec 2023 00:48:59 +0900 Subject: [PATCH] Add Baker's fix for spplying default lightstyle to q3bsp --- gl_rmain.c | 5 +++++ 1 file changed, 5 insertions(+) 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) { -- 2.39.2