]> de.git.xonotic.org Git - xonotic/netradiant.git/commitdiff
fix falloff tolerance for sRGB
authorRudolf Polzer <divverent@xonotic.org>
Thu, 9 Feb 2012 09:41:09 +0000 (10:41 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Thu, 9 Feb 2012 09:41:09 +0000 (10:41 +0100)
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)
        {