From d1e3042389e6e6282c6cb27e0aa75f44c137339e Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Fri, 22 Oct 2010 09:35:41 +0200 Subject: [PATCH] support search box size in randomsamples too (although useless) --- tools/quake3/q3map2/light_ydnar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/quake3/q3map2/light_ydnar.c b/tools/quake3/q3map2/light_ydnar.c index c0c77be..c8ca3bd 100644 --- a/tools/quake3/q3map2/light_ydnar.c +++ b/tools/quake3/q3map2/light_ydnar.c @@ -2347,7 +2347,7 @@ void IlluminateRawLightmap( int rawLightmapNum ) /* subsample it */ if(lightRandomSamples) - RandomSubsampleRawLuxel( lm, &trace, origin, sx, sy, 0.5f, lightLuxel, deluxemap ? lightDeluxel : NULL ); + RandomSubsampleRawLuxel( lm, &trace, origin, sx, sy, 0.5f * lightSamplesSearchBoxSize, lightLuxel, deluxemap ? lightDeluxel : NULL ); else SubsampleRawLuxel_r( lm, &trace, origin, sx, sy, 0.25f * lightSamplesSearchBoxSize, lightLuxel, deluxemap ? lightDeluxel : NULL ); -- 2.39.2