From: Rudolf Polzer Date: Fri, 22 Oct 2010 07:35:41 +0000 (+0200) Subject: support search box size in randomsamples too (although useless) X-Git-Tag: xonotic-v0.5.0~167 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d1e3042389e6e6282c6cb27e0aa75f44c137339e;p=xonotic%2Fnetradiant.git support search box size in randomsamples too (although useless) --- diff --git a/tools/quake3/q3map2/light_ydnar.c b/tools/quake3/q3map2/light_ydnar.c index c0c77be4..c8ca3bde 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 );