From: Rudolf Polzer Date: Wed, 14 Dec 2011 08:28:03 +0000 (+0100) Subject: support -sRGBcolor for flares X-Git-Tag: xonotic-v0.6.0~41 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=870333585c699ba2915285311c284ef1b4a2f38e;p=xonotic%2Fnetradiant.git support -sRGBcolor for flares --- diff --git a/tools/quake3/q3map2/bsp.c b/tools/quake3/q3map2/bsp.c index 8fe5966a..2ef482f1 100644 --- a/tools/quake3/q3map2/bsp.c +++ b/tools/quake3/q3map2/bsp.c @@ -456,6 +456,13 @@ void ProcessWorldModel( void ) else //% VectorClear( normal ); VectorSet( normal, 0, 0, -1 ); + + if(colorsRGB) + { + color[0] = Image_LinearFloatFromsRGBFloat(color[0]); + color[1] = Image_LinearFloatFromsRGBFloat(color[1]); + color[2] = Image_LinearFloatFromsRGBFloat(color[2]); + } /* create the flare surface (note shader defaults automatically) */ DrawSurfaceForFlare( mapEntityNum, origin, normal, color, flareShader, lightStyle );