From: Rudolf Polzer Date: Sun, 25 Dec 2011 18:45:09 +0000 (+0100) Subject: add shorthand option -nosRGB to turn off all sRGB modes X-Git-Tag: xonotic-v0.6.0~35 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=commitdiff_plain;h=f536f829e55b4b3ce32e0c1e06ba5185a073a173 add shorthand option -nosRGB to turn off all sRGB modes --- diff --git a/tools/quake3/q3map2/bsp.c b/tools/quake3/q3map2/bsp.c index 2ef482f1..4ccf97e2 100644 --- a/tools/quake3/q3map2/bsp.c +++ b/tools/quake3/q3map2/bsp.c @@ -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" ); diff --git a/tools/quake3/q3map2/light.c b/tools/quake3/q3map2/light.c index 74ed5a46..ae5b40e6 100644 --- a/tools/quake3/q3map2/light.c +++ b/tools/quake3/q3map2/light.c @@ -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 ] );