Ignore transparent surfaces when floodlighting
authorjal <germangar@gmail.com>
Wed, 13 Oct 2010 14:26:28 +0000 (16:26 +0200)
committerjal <germangar@gmail.com>
Wed, 13 Oct 2010 14:26:28 +0000 (16:26 +0200)
tools/quake3/q3map2/light_ydnar.c

index 24fa17a411c7a24c2900cdf52745473a98539962..c0c77be4190edd5f03b65e51cbb547c1ceb4d9e7 100644 (file)
@@ -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;
                        }