]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
support -sRGBcolor for flares
authorRudolf Polzer <divverent@alientrap.org>
Wed, 14 Dec 2011 08:28:03 +0000 (09:28 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Wed, 14 Dec 2011 08:51:15 +0000 (09:51 +0100)
tools/quake3/q3map2/bsp.c

index 8fe5966a399b279ebe7da0b05d6b31b053effb60..2ef482f1a5201e60e18fea037045e21800680e41 100644 (file)
@@ -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 );