From: jal Date: Wed, 13 Oct 2010 14:26:28 +0000 (+0200) Subject: Ignore transparent surfaces when floodlighting X-Git-Tag: xonotic-v0.5.0~170^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8c7ca79ef5981e820ce334709b2d15b2a6ae8276;p=xonotic%2Fnetradiant.git Ignore transparent surfaces when floodlighting --- diff --git a/tools/quake3/q3map2/light_ydnar.c b/tools/quake3/q3map2/light_ydnar.c index 24fa17a4..c0c77be4 100644 --- a/tools/quake3/q3map2/light_ydnar.c +++ b/tools/quake3/q3map2/light_ydnar.c @@ -4162,7 +4162,7 @@ float FloodLightForSample( trace_t *trace , float floodLightDistance, qboolean f TraceLine( trace ); contribution=1; - if (trace->compileFlags & C_SKY ) + if ( trace->compileFlags & C_SKY || trace->compileFlags & C_TRANSLUCENT ) { contribution=1.0f; }