From: Rudolf Polzer Date: Sat, 30 Oct 2010 14:37:04 +0000 (+0200) Subject: no need to artificially limit lightmap position for random supersampling X-Git-Tag: xonotic-v0.5.0~163 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=020a3febce24ea18a3fb0da22b62066dafa9152e;p=xonotic%2Fnetradiant.git no need to artificially limit lightmap position for random supersampling --- diff --git a/tools/quake3/q3map2/light_ydnar.c b/tools/quake3/q3map2/light_ydnar.c index 6f45e1ef..97c546d7 100644 --- a/tools/quake3/q3map2/light_ydnar.c +++ b/tools/quake3/q3map2/light_ydnar.c @@ -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 ) )