From: Rudolf Polzer Date: Thu, 9 Feb 2012 09:41:09 +0000 (+0100) Subject: fix falloff tolerance for sRGB X-Git-Tag: xonotic-v0.6.0~19 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0c44cbd7ea7fc61664445353994aad69fced947e;p=xonotic%2Fnetradiant.git fix falloff tolerance for sRGB --- diff --git a/tools/quake3/q3map2/light.c b/tools/quake3/q3map2/light.c index ae5b40e6..c5015e84 100644 --- a/tools/quake3/q3map2/light.c +++ b/tools/quake3/q3map2/light.c @@ -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) {