X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=model_brush.c;h=465f662fd2d2eed82fe965ddce80daa22d419865;hb=3716b19ecc1c9705928d4d76c27f5f7f8300fc43;hp=9ddbae8ecbcec4d3ae5b91c4cd03e565fd7d4625;hpb=2a00971f816fb8d71cb69a4982ec69616f649353;p=xonotic%2Fdarkplaces.git diff --git a/model_brush.c b/model_brush.c index 9ddbae8e..465f662f 100644 --- a/model_brush.c +++ b/model_brush.c @@ -1194,7 +1194,7 @@ loc0: // bilinear filter each lightmap style, and sum them for (maps = 0;maps < MAXLIGHTMAPS && surface->lightmapinfo->styles[maps] != 255;maps++) { - scale = r_refdef.lightstylevalue[surface->lightmapinfo->styles[maps]]; + scale = r_refdef.scene.lightstylevalue[surface->lightmapinfo->styles[maps]]; w = w00 * scale;VectorMA(ambientcolor, w, lightmap , ambientcolor); w = w01 * scale;VectorMA(ambientcolor, w, lightmap + 3 , ambientcolor); w = w10 * scale;VectorMA(ambientcolor, w, lightmap + line3 , ambientcolor); @@ -5235,7 +5235,7 @@ static void Mod_Q3BSP_LightPoint(model_t *model, const vec3_t p, vec3_t ambientc q3dlightgrid_t *a, *s; // scale lighting by lightstyle[0] so that darkmode in dpmod works properly - stylescale = r_refdef.rtlightstylevalue[0]; + stylescale = r_refdef.scene.rtlightstylevalue[0]; if (!model->brushq3.num_lightgrid) {