]> de.git.xonotic.org Git - xonotic/netradiant.git/commitdiff
support search box size in randomsamples too (although useless)
authorRudolf Polzer <divverent@alientrap.org>
Fri, 22 Oct 2010 07:35:41 +0000 (09:35 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Fri, 22 Oct 2010 07:35:41 +0000 (09:35 +0200)
tools/quake3/q3map2/light_ydnar.c

index c0c77be4190edd5f03b65e51cbb547c1ceb4d9e7..c8ca3bdeda87b06d6c9e5a5b2d938f3e3c351ff0 100644 (file)
@@ -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 );