]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/q3map2/light_ydnar.c
force going all the way down when subsampling grates
[xonotic/netradiant.git] / tools / quake3 / q3map2 / light_ydnar.c
index ccbc54adb88e695f7bb75760ab93a000b81e44bb..c1bab3df5e85316a9644aaebc13cfaf548180c56 100644 (file)
@@ -1817,6 +1817,13 @@ static void SubsampleRawLuxel_r( rawLightmap_t *lm, trace_t *trace, vec3_t sampl
                /* sample light */
 
                LightContributionToSample( trace );
+               if(trace.forceSubsampling)
+               {
+                       /* alphashadow: we subsample as deep as we can */
+                       ++lighted;
+                       ++mapped;
+                       ++mapped;
+               }
                
                /* add to totals (fixme: make contrast function) */
                VectorCopy( trace->color, luxel[ b ] );