Sys_Printf( "Colors are linear\n" );
}
- else if ( !strcmp( argv[ i ], "-nosRGB" ) ) {
+ else if ( !strcmp( argv[ i ], "-sRGB" ) ) {
lightmapsRGB = qtrue;
- Sys_Printf( "Lighting is linear\n" );
+ Sys_Printf( "Lighting is in sRGB\n" );
texturesRGB = qtrue;
- Sys_Printf( "Textures are linear\n" );
+ Sys_Printf( "Textures are in sRGB\n" );
colorsRGB = qtrue;
+ Sys_Printf( "Colors are in sRGB\n" );
+ }
+
+ else if ( !strcmp( argv[ i ], "-nosRGB" ) ) {
+ lightmapsRGB = qfalse;
+ Sys_Printf( "Lighting is linear\n" );
+ texturesRGB = qfalse;
+ Sys_Printf( "Textures are linear\n" );
+ colorsRGB = qfalse;
Sys_Printf( "Colors are linear\n" );
}
/* bouncing light? */
if ( !bouncing ) {
+ Sys_Printf( "BUG: RadSubdivideDiffuseLight !bouncing shouldn't happen\n" );
+
/* handle first-pass lights in normal q3a style */
value = si->value;
light->photons = value * area * areaScale;
light->dist = DotProduct( light->origin, normal );
}
+ if (light->photons < 0 || light->add < 0 || light->color[0] < 0 || light->color[1] < 0 || light->color[2] < 0)
+ Sys_Printf( "BUG: RadSubdivideDiffuseLight created a darkbulb\n" );
+
/* emit light from both sides? */
if ( si->compileFlags & C_FOG || si->twoSided ) {
light->flags |= LIGHT_TWOSIDED;