no need to artificially limit lightmap position for random supersampling

This commit is contained in:
Rudolf Polzer 2010-10-30 16:37:04 +02:00
parent aa00101d5e
commit 020a3febce

View File

@ -1926,10 +1926,6 @@ static void RandomSubsampleRawLuxel( rawLightmap_t *lm, trace_t *trace, vec3_t s
/* set origin */ /* set origin */
VectorCopy( sampleOrigin, origin ); VectorCopy( sampleOrigin, origin );
GaussLikeRandom(bias, &dx, &dy); 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 */ /* calculate position */
if( !SubmapRawLuxel( lm, x, y, dx, dy, &cluster, origin, normal ) ) if( !SubmapRawLuxel( lm, x, y, dx, dy, &cluster, origin, normal ) )