option: -sRGBcolor (unused yet)
This commit is contained in:
parent
48a8cb1d67
commit
f4e45cb897
|
|
@ -684,6 +684,7 @@ int BSPMain( int argc, char **argv )
|
||||||
maxSurfaceIndexes = game->maxSurfaceIndexes;
|
maxSurfaceIndexes = game->maxSurfaceIndexes;
|
||||||
emitFlares = game->emitFlares;
|
emitFlares = game->emitFlares;
|
||||||
texturesRGB = game->texturesRGB;
|
texturesRGB = game->texturesRGB;
|
||||||
|
colorsRGB = game->colorsRGB;
|
||||||
|
|
||||||
/* process arguments */
|
/* process arguments */
|
||||||
for( i = 1; i < (argc - 1); i++ )
|
for( i = 1; i < (argc - 1); i++ )
|
||||||
|
|
@ -934,6 +935,16 @@ int BSPMain( int argc, char **argv )
|
||||||
texturesRGB = qfalse;
|
texturesRGB = qfalse;
|
||||||
Sys_Printf( "Textures are linear\n" );
|
Sys_Printf( "Textures are linear\n" );
|
||||||
}
|
}
|
||||||
|
else if( !strcmp( argv[ i ], "-sRGBcolor" ) )
|
||||||
|
{
|
||||||
|
colorsRGB = qtrue;
|
||||||
|
Sys_Printf( "Colors are in sRGB\n" );
|
||||||
|
}
|
||||||
|
else if( !strcmp( argv[ i ], "-nosRGBcolor" ) )
|
||||||
|
{
|
||||||
|
colorsRGB = qfalse;
|
||||||
|
Sys_Printf( "Colors are linear\n" );
|
||||||
|
}
|
||||||
else if( !strcmp( argv[ i ], "-altsplit" ) )
|
else if( !strcmp( argv[ i ], "-altsplit" ) )
|
||||||
{
|
{
|
||||||
Sys_Printf( "Alternate BSP splitting (by 27) enabled\n" );
|
Sys_Printf( "Alternate BSP splitting (by 27) enabled\n" );
|
||||||
|
|
|
||||||
|
|
@ -65,6 +65,7 @@ game_t struct
|
||||||
0, /* lightmap gamma */
|
0, /* lightmap gamma */
|
||||||
qfalse, /* lightmap sRGB */
|
qfalse, /* lightmap sRGB */
|
||||||
qfalse, /* texture sRGB */
|
qfalse, /* texture sRGB */
|
||||||
|
qfalse, /* color sRGB */
|
||||||
0, /* lightmap exposure */
|
0, /* lightmap exposure */
|
||||||
0, /* lightmap compensate */
|
0, /* lightmap compensate */
|
||||||
0, /* lightgrid scale */
|
0, /* lightgrid scale */
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,7 @@ game_t struct
|
||||||
1.0f, /* lightmap gamma */
|
1.0f, /* lightmap gamma */
|
||||||
qfalse, /* lightmap sRGB */
|
qfalse, /* lightmap sRGB */
|
||||||
qfalse, /* texture sRGB */
|
qfalse, /* texture sRGB */
|
||||||
|
qfalse, /* color sRGB */
|
||||||
200.0f, /* lightmap exposure */
|
200.0f, /* lightmap exposure */
|
||||||
1.0f, /* lightmap compensate */
|
1.0f, /* lightmap compensate */
|
||||||
0.3f, /* lightgrid scale */
|
0.3f, /* lightgrid scale */
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,7 @@ game_t struct
|
||||||
1.2f, /* lightmap gamma */
|
1.2f, /* lightmap gamma */
|
||||||
qfalse, /* lightmap sRGB */
|
qfalse, /* lightmap sRGB */
|
||||||
qfalse, /* texture sRGB */
|
qfalse, /* texture sRGB */
|
||||||
|
qfalse, /* color sRGB */
|
||||||
200.0f, /* lightmap exposure */
|
200.0f, /* lightmap exposure */
|
||||||
1.0f, /* lightmap compensate */
|
1.0f, /* lightmap compensate */
|
||||||
0.3f, /* lightgrid scale */
|
0.3f, /* lightgrid scale */
|
||||||
|
|
|
||||||
|
|
@ -115,6 +115,7 @@ game_t struct
|
||||||
1.0f, /* lightmap gamma */
|
1.0f, /* lightmap gamma */
|
||||||
qfalse, /* lightmap sRGB */
|
qfalse, /* lightmap sRGB */
|
||||||
qfalse, /* texture sRGB */
|
qfalse, /* texture sRGB */
|
||||||
|
qfalse, /* color sRGB */
|
||||||
1.0f, /* lightmap exposure */
|
1.0f, /* lightmap exposure */
|
||||||
1.0f, /* lightmap compensate */
|
1.0f, /* lightmap compensate */
|
||||||
1.0f, /* lightgrid scale */
|
1.0f, /* lightgrid scale */
|
||||||
|
|
|
||||||
|
|
@ -150,6 +150,7 @@ game_t struct
|
||||||
1.0f, /* lightmap gamma */
|
1.0f, /* lightmap gamma */
|
||||||
qtrue, /* lightmap sRGB */
|
qtrue, /* lightmap sRGB */
|
||||||
qfalse, /* texture sRGB (yes, this is incorrect, but we better match ET:UT) */
|
qfalse, /* texture sRGB (yes, this is incorrect, but we better match ET:UT) */
|
||||||
|
qfalse, /* color sRGB */
|
||||||
1.0f, /* lightmap exposure */
|
1.0f, /* lightmap exposure */
|
||||||
1.0f, /* lightmap compensate */
|
1.0f, /* lightmap compensate */
|
||||||
1.0f, /* lightgrid scale */
|
1.0f, /* lightgrid scale */
|
||||||
|
|
|
||||||
|
|
@ -69,6 +69,7 @@ game_t struct
|
||||||
1.0f, /* lightmap gamma */
|
1.0f, /* lightmap gamma */
|
||||||
qfalse, /* lightmap sRGB */
|
qfalse, /* lightmap sRGB */
|
||||||
qfalse, /* texture sRGB */
|
qfalse, /* texture sRGB */
|
||||||
|
qfalse, /* color sRGB */
|
||||||
1.0f, /* lightmap exposure */
|
1.0f, /* lightmap exposure */
|
||||||
1.0f, /* lightmap compensate */
|
1.0f, /* lightmap compensate */
|
||||||
1.0f, /* lightgrid scale */
|
1.0f, /* lightgrid scale */
|
||||||
|
|
|
||||||
|
|
@ -66,6 +66,7 @@ game_t struct
|
||||||
1.0f, /* lightmap gamma */
|
1.0f, /* lightmap gamma */
|
||||||
qfalse, /* lightmap sRGB */
|
qfalse, /* lightmap sRGB */
|
||||||
qfalse, /* texture sRGB */
|
qfalse, /* texture sRGB */
|
||||||
|
qfalse, /* color sRGB */
|
||||||
1.0f, /* lightmap exposure */
|
1.0f, /* lightmap exposure */
|
||||||
1.0f, /* lightmap compensate */
|
1.0f, /* lightmap compensate */
|
||||||
1.0f, /* lightgrid scale */
|
1.0f, /* lightgrid scale */
|
||||||
|
|
|
||||||
|
|
@ -65,6 +65,7 @@ game_t struct
|
||||||
1.0f, /* lightmap gamma */
|
1.0f, /* lightmap gamma */
|
||||||
qfalse, /* lightmap sRGB */
|
qfalse, /* lightmap sRGB */
|
||||||
qfalse, /* texture sRGB */
|
qfalse, /* texture sRGB */
|
||||||
|
qfalse, /* color sRGB */
|
||||||
1.0f, /* lightmap exposure */
|
1.0f, /* lightmap exposure */
|
||||||
1.0f, /* lightmap compensate */
|
1.0f, /* lightmap compensate */
|
||||||
1.0f, /* lightgrid scale */
|
1.0f, /* lightgrid scale */
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,7 @@ game_t struct
|
||||||
1.0f, /* lightmap gamma */
|
1.0f, /* lightmap gamma */
|
||||||
qfalse, /* lightmap sRGB */
|
qfalse, /* lightmap sRGB */
|
||||||
qfalse, /* texture sRGB */
|
qfalse, /* texture sRGB */
|
||||||
|
qfalse, /* color sRGB */
|
||||||
200.0f, /* lightmap exposure */
|
200.0f, /* lightmap exposure */
|
||||||
1.0f, /* lightmap compensate */
|
1.0f, /* lightmap compensate */
|
||||||
0.4f, /* lightgrid scale */
|
0.4f, /* lightgrid scale */
|
||||||
|
|
|
||||||
|
|
@ -117,6 +117,7 @@ game_t struct
|
||||||
1.0f, /* lightmap gamma */
|
1.0f, /* lightmap gamma */
|
||||||
qfalse, /* lightmap sRGB */
|
qfalse, /* lightmap sRGB */
|
||||||
qfalse, /* texture sRGB */
|
qfalse, /* texture sRGB */
|
||||||
|
qfalse, /* color sRGB */
|
||||||
1.0f, /* lightmap exposure */
|
1.0f, /* lightmap exposure */
|
||||||
1.0f, /* lightmap compensate */
|
1.0f, /* lightmap compensate */
|
||||||
1.0f, /* lightgrid scale */
|
1.0f, /* lightgrid scale */
|
||||||
|
|
|
||||||
|
|
@ -114,6 +114,7 @@ game_t struct
|
||||||
1.0f, /* lightmap gamma */
|
1.0f, /* lightmap gamma */
|
||||||
qfalse, /* lightmap sRGB */
|
qfalse, /* lightmap sRGB */
|
||||||
qfalse, /* texture sRGB */
|
qfalse, /* texture sRGB */
|
||||||
|
qfalse, /* color sRGB */
|
||||||
1.0f, /* lightmap exposure */
|
1.0f, /* lightmap exposure */
|
||||||
1.0f, /* lightmap compensate */
|
1.0f, /* lightmap compensate */
|
||||||
1.0f, /* lightgrid scale */
|
1.0f, /* lightgrid scale */
|
||||||
|
|
|
||||||
|
|
@ -66,6 +66,7 @@ game_t struct
|
||||||
1.0f, /* lightmap gamma */
|
1.0f, /* lightmap gamma */
|
||||||
qfalse, /* lightmap sRGB */
|
qfalse, /* lightmap sRGB */
|
||||||
qfalse, /* texture sRGB */
|
qfalse, /* texture sRGB */
|
||||||
|
qfalse, /* color sRGB */
|
||||||
1.0f, /* lightmap exposure */
|
1.0f, /* lightmap exposure */
|
||||||
1.0f, /* lightmap compensate */
|
1.0f, /* lightmap compensate */
|
||||||
1.0f, /* lightgrid scale */
|
1.0f, /* lightgrid scale */
|
||||||
|
|
|
||||||
|
|
@ -86,6 +86,7 @@ game_t struct
|
||||||
1.0f, /* lightmap gamma */
|
1.0f, /* lightmap gamma */
|
||||||
qfalse, /* lightmap sRGB */
|
qfalse, /* lightmap sRGB */
|
||||||
qfalse, /* texture sRGB */
|
qfalse, /* texture sRGB */
|
||||||
|
qfalse, /* color sRGB */
|
||||||
1.0f, /* lightmap exposure */
|
1.0f, /* lightmap exposure */
|
||||||
1.0f, /* lightmap compensate */
|
1.0f, /* lightmap compensate */
|
||||||
1.0f, /* lightgrid scale */
|
1.0f, /* lightgrid scale */
|
||||||
|
|
|
||||||
|
|
@ -141,6 +141,7 @@ game_t struct
|
||||||
1.0f, /* lightmap gamma */
|
1.0f, /* lightmap gamma */
|
||||||
qfalse, /* lightmap sRGB */
|
qfalse, /* lightmap sRGB */
|
||||||
qfalse, /* texture sRGB */
|
qfalse, /* texture sRGB */
|
||||||
|
qfalse, /* color sRGB */
|
||||||
1.0f, /* lightmap exposure */
|
1.0f, /* lightmap exposure */
|
||||||
1.0f, /* lightmap compensate */
|
1.0f, /* lightmap compensate */
|
||||||
1.0f, /* lightgrid scale */
|
1.0f, /* lightgrid scale */
|
||||||
|
|
|
||||||
|
|
@ -114,6 +114,7 @@ game_t struct
|
||||||
2.0f, /* lightmap gamma */
|
2.0f, /* lightmap gamma */
|
||||||
qfalse, /* lightmap sRGB */
|
qfalse, /* lightmap sRGB */
|
||||||
qfalse, /* texture sRGB */
|
qfalse, /* texture sRGB */
|
||||||
|
qfalse, /* color sRGB */
|
||||||
1.0f, /* lightmap exposure */
|
1.0f, /* lightmap exposure */
|
||||||
1.0f, /* lightmap compensate */
|
1.0f, /* lightmap compensate */
|
||||||
1.0f, /* lightgrid scale */
|
1.0f, /* lightgrid scale */
|
||||||
|
|
|
||||||
|
|
@ -72,6 +72,7 @@ game_t struct
|
||||||
1.0f, /* lightmap gamma */
|
1.0f, /* lightmap gamma */
|
||||||
qfalse, /* lightmap sRGB */
|
qfalse, /* lightmap sRGB */
|
||||||
qfalse, /* texture sRGB */
|
qfalse, /* texture sRGB */
|
||||||
|
qfalse, /* color sRGB */
|
||||||
1.0f, /* lightmap exposure */
|
1.0f, /* lightmap exposure */
|
||||||
1.0f, /* lightmap compensate */
|
1.0f, /* lightmap compensate */
|
||||||
1.0f, /* lightgrid scale */
|
1.0f, /* lightgrid scale */
|
||||||
|
|
|
||||||
|
|
@ -131,6 +131,7 @@ game_t struct
|
||||||
1.0f, /* lightmap gamma */
|
1.0f, /* lightmap gamma */
|
||||||
qfalse, /* lightmap sRGB */
|
qfalse, /* lightmap sRGB */
|
||||||
qfalse, /* texture sRGB */
|
qfalse, /* texture sRGB */
|
||||||
|
qfalse, /* color sRGB */
|
||||||
1.0f, /* lightmap exposure */
|
1.0f, /* lightmap exposure */
|
||||||
1.0f, /* lightmap compensate */
|
1.0f, /* lightmap compensate */
|
||||||
1.0f, /* lightgrid scale */
|
1.0f, /* lightgrid scale */
|
||||||
|
|
|
||||||
|
|
@ -68,6 +68,7 @@ game_t struct
|
||||||
1.0f, /* lightmap gamma */
|
1.0f, /* lightmap gamma */
|
||||||
qfalse, /* lightmap sRGB */
|
qfalse, /* lightmap sRGB */
|
||||||
qfalse, /* texture sRGB */
|
qfalse, /* texture sRGB */
|
||||||
|
qfalse, /* color sRGB */
|
||||||
1.0f, /* lightmap exposure */
|
1.0f, /* lightmap exposure */
|
||||||
1.0f, /* lightmap compensate */
|
1.0f, /* lightmap compensate */
|
||||||
1.0f, /* lightgrid scale */
|
1.0f, /* lightgrid scale */
|
||||||
|
|
|
||||||
|
|
@ -65,6 +65,7 @@ game_t struct
|
||||||
1.0f, /* lightmap gamma */
|
1.0f, /* lightmap gamma */
|
||||||
qfalse, /* lightmap sRGB */
|
qfalse, /* lightmap sRGB */
|
||||||
qfalse, /* texture sRGB */
|
qfalse, /* texture sRGB */
|
||||||
|
qfalse, /* color sRGB */
|
||||||
1.0f, /* lightmap exposure */
|
1.0f, /* lightmap exposure */
|
||||||
1.0f, /* lightmap compensate */
|
1.0f, /* lightmap compensate */
|
||||||
1.0f, /* lightgrid scale */
|
1.0f, /* lightgrid scale */
|
||||||
|
|
|
||||||
|
|
@ -2083,6 +2083,12 @@ int LightMain( int argc, char **argv )
|
||||||
else
|
else
|
||||||
Sys_Printf( " texture colorspace: linear\n" );
|
Sys_Printf( " texture colorspace: linear\n" );
|
||||||
|
|
||||||
|
colorsRGB = game->colorsRGB;
|
||||||
|
if(colorsRGB)
|
||||||
|
Sys_Printf( " _color colorspace: sRGB\n" );
|
||||||
|
else
|
||||||
|
Sys_Printf( " _color colorspace: linear\n" );
|
||||||
|
|
||||||
lightmapCompensate = game->lightmapCompensate;
|
lightmapCompensate = game->lightmapCompensate;
|
||||||
Sys_Printf( " lightning compensation: %f\n", lightmapCompensate );
|
Sys_Printf( " lightning compensation: %f\n", lightmapCompensate );
|
||||||
|
|
||||||
|
|
@ -2259,6 +2265,18 @@ int LightMain( int argc, char **argv )
|
||||||
Sys_Printf( "Textures are linear\n" );
|
Sys_Printf( "Textures are linear\n" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else if( !strcmp( argv[ i ], "-sRGBcolor" ) )
|
||||||
|
{
|
||||||
|
colorsRGB = qtrue;
|
||||||
|
Sys_Printf( "Colors are in sRGB\n" );
|
||||||
|
}
|
||||||
|
|
||||||
|
else if( !strcmp( argv[ i ], "-nosRGBcolor" ) )
|
||||||
|
{
|
||||||
|
colorsRGB = qfalse;
|
||||||
|
Sys_Printf( "Colors are linear\n" );
|
||||||
|
}
|
||||||
|
|
||||||
else if( !strcmp( argv[ i ], "-exposure" ) )
|
else if( !strcmp( argv[ i ], "-exposure" ) )
|
||||||
{
|
{
|
||||||
f = atof( argv[ i + 1 ] );
|
f = atof( argv[ i + 1 ] );
|
||||||
|
|
|
||||||
|
|
@ -567,6 +567,7 @@ typedef struct game_s
|
||||||
float lightmapGamma; /* default lightmap gamma */
|
float lightmapGamma; /* default lightmap gamma */
|
||||||
qboolean lightmapsRGB; /* default lightmap sRGB mode */
|
qboolean lightmapsRGB; /* default lightmap sRGB mode */
|
||||||
qboolean texturesRGB; /* default texture sRGB mode */
|
qboolean texturesRGB; /* default texture sRGB mode */
|
||||||
|
qboolean colorsRGB; /* default color sRGB mode */
|
||||||
float lightmapExposure; /* default lightmap exposure */
|
float lightmapExposure; /* default lightmap exposure */
|
||||||
float lightmapCompensate; /* default lightmap compensate value */
|
float lightmapCompensate; /* default lightmap compensate value */
|
||||||
float gridScale; /* vortex: default lightgrid scale (affects both directional and ambient spectres) */
|
float gridScale; /* vortex: default lightgrid scale (affects both directional and ambient spectres) */
|
||||||
|
|
@ -2302,6 +2303,7 @@ Q_EXTERN qboolean inGrid Q_ASSIGN(0);
|
||||||
Q_EXTERN float lightmapGamma Q_ASSIGN( 1.0f );
|
Q_EXTERN float lightmapGamma Q_ASSIGN( 1.0f );
|
||||||
Q_EXTERN float lightmapsRGB Q_ASSIGN( qfalse );
|
Q_EXTERN float lightmapsRGB Q_ASSIGN( qfalse );
|
||||||
Q_EXTERN float texturesRGB Q_ASSIGN( qfalse );
|
Q_EXTERN float texturesRGB Q_ASSIGN( qfalse );
|
||||||
|
Q_EXTERN float colorsRGB Q_ASSIGN( qfalse );
|
||||||
Q_EXTERN float lightmapExposure Q_ASSIGN( 1.0f );
|
Q_EXTERN float lightmapExposure Q_ASSIGN( 1.0f );
|
||||||
Q_EXTERN float lightmapCompensate Q_ASSIGN( 1.0f );
|
Q_EXTERN float lightmapCompensate Q_ASSIGN( 1.0f );
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user