]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/q3map2/light.c
fix falloff tolerance for sRGB
[xonotic/netradiant.git] / tools / quake3 / q3map2 / light.c
index ae5b40e6dc0bced64eef9fa7b8e76b6835209849..c5015e84566560d6fa6214f6e973fd4af5fc58d4 100644 (file)
@@ -2852,6 +2852,10 @@ int LightMain( int argc, char **argv )
 
        }
 
+       /* fix up falloff tolerance for sRGB */
+       if(lightmapsRGB)
+               falloffTolerance = Image_LinearFloatFromsRGBFloat(falloffTolerance * (1.0 / 255.0)) * 255.0;
+
        /* fix up samples count */
        if(lightRandomSamples)
        {