]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
add shorthand option -nosRGB to turn off all sRGB modes
authorRudolf Polzer <divverent@alientrap.org>
Sun, 25 Dec 2011 18:45:09 +0000 (19:45 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Sun, 25 Dec 2011 18:45:09 +0000 (19:45 +0100)
tools/quake3/q3map2/bsp.c
tools/quake3/q3map2/light.c

index 2ef482f1a5201e60e18fea037045e21800680e41..4ccf97e2f113b0786bb5bb8dbbc9e041a5040d2d 100644 (file)
@@ -952,6 +952,13 @@ int BSPMain( int argc, char **argv )
                        colorsRGB = qfalse;
                        Sys_Printf( "Colors are linear\n" );
                }
+               else if( !strcmp( argv[ i ], "-nosRGB" ) )
+               {
+                       texturesRGB = qfalse;
+                       Sys_Printf( "Textures are linear\n" );
+                       colorsRGB = qfalse;
+                       Sys_Printf( "Colors are linear\n" );
+               }
                else if( !strcmp( argv[ i ], "-altsplit" ) )
                {
                        Sys_Printf( "Alternate BSP splitting (by 27) enabled\n" );
index 74ed5a46658848c04a941bd5e7cb455255310453..ae5b40e6dc0bced64eef9fa7b8e76b6835209849 100644 (file)
@@ -2289,6 +2289,16 @@ int LightMain( int argc, char **argv )
                        Sys_Printf( "Colors are linear\n" );
                }
 
+               else if( !strcmp( argv[ i ], "-nosRGB" ) )
+               {
+                       lightmapsRGB = qtrue;
+                       Sys_Printf( "Lighting is linear\n" );
+                       texturesRGB = qtrue;
+                       Sys_Printf( "Textures are linear\n" );
+                       colorsRGB = qtrue;
+                       Sys_Printf( "Colors are linear\n" );
+               }
+
                else if( !strcmp( argv[ i ], "-exposure" ) )
                {
                        f = atof( argv[ i + 1 ] );