From 8c7ca79ef5981e820ce334709b2d15b2a6ae8276 Mon Sep 17 00:00:00 2001 From: jal Date: Wed, 13 Oct 2010 16:26:28 +0200 Subject: [PATCH] Ignore transparent surfaces when floodlighting --- tools/quake3/q3map2/light_ydnar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/quake3/q3map2/light_ydnar.c b/tools/quake3/q3map2/light_ydnar.c index 24fa17a..c0c77be 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; } -- 2.39.2