support search box size in randomsamples too (although useless)

This commit is contained in:
Rudolf Polzer 2010-10-22 09:35:41 +02:00
parent 10dfced6cb
commit d1e3042389

View File

@ -2347,7 +2347,7 @@ void IlluminateRawLightmap( int rawLightmapNum )
/* subsample it */ /* subsample it */
if(lightRandomSamples) 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 else
SubsampleRawLuxel_r( lm, &trace, origin, sx, sy, 0.25f * lightSamplesSearchBoxSize, lightLuxel, deluxemap ? lightDeluxel : NULL ); SubsampleRawLuxel_r( lm, &trace, origin, sx, sy, 0.25f * lightSamplesSearchBoxSize, lightLuxel, deluxemap ? lightDeluxel : NULL );