]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/q3map2/light.c
add shorthand option -nosRGB to turn off all sRGB modes
[xonotic/netradiant.git] / tools / quake3 / q3map2 / light.c
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 ] );