From: Rudolf Polzer Date: Sun, 14 Feb 2010 19:09:15 +0000 (+0100) Subject: small fix by jal regarding normal vectors from lighting X-Git-Tag: xonotic-v0.5.0~286 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b8839b8771f2cb180b3ffc81661cb4ee419036d2;p=xonotic%2Fnetradiant.git small fix by jal regarding normal vectors from lighting --- diff --git a/tools/quake3/q3map2/light_ydnar.c b/tools/quake3/q3map2/light_ydnar.c index 4b028059..3207928b 100644 --- a/tools/quake3/q3map2/light_ydnar.c +++ b/tools/quake3/q3map2/light_ydnar.c @@ -1425,7 +1425,7 @@ float DirtForSample( trace_t *trace ) VectorCopy( trace->normal, normal ); /* check if the normal is aligned to the world-up */ - if( normal[ 0 ] == 0.0f && normal[ 1 ] == 0.0f ) + if( normal[ 0 ] == 0.0f && normal[ 1 ] == 0.0f && ( normal[ 2 ] == 1.0f || normal[ 2 ] == -1.0f ) ) { if( normal[ 2 ] == 1.0f ) {