]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
no need to artificially limit lightmap position for random supersampling
authorRudolf Polzer <divverent@alientrap.org>
Sat, 30 Oct 2010 14:37:04 +0000 (16:37 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Sat, 30 Oct 2010 14:37:04 +0000 (16:37 +0200)
tools/quake3/q3map2/light_ydnar.c

index 6f45e1ef419cc85f7c7a8c2f2f20a4f56e9003ee..97c546d7379ab2cd5c92c9456095fa089d87831d 100644 (file)
@@ -1926,10 +1926,6 @@ static void RandomSubsampleRawLuxel( rawLightmap_t *lm, trace_t *trace, vec3_t s
                /* set origin */
                VectorCopy( sampleOrigin, origin );
                GaussLikeRandom(bias, &dx, &dy);
-               if(dx > 1) dx = 1;
-               if(dy > 1) dy = 1;
-               if(dx < -1) dx = -1;
-               if(dy < -1) dy = -1;
 
                /* calculate position */
                if( !SubmapRawLuxel( lm, x, y, dx, dy, &cluster, origin, normal ) )