/* return to sender */
return 1;
}
- else{
+ else {
Error( "Light of undefined type!" );
}
if ( VectorLength( color ) == 0.0f ) {
VectorSet( color, 1.0, 1.0, 1.0 );
}
+
if ( colorsRGB ) {
color[0] = Image_LinearFloatFromsRGBFloat( color[0] );
color[1] = Image_LinearFloatFromsRGBFloat( color[1] );
qboolean lightSamplesInsist = qfalse;
qboolean fastAllocate = qfalse;
-
/* note it */
Sys_Printf( "--- Light ---\n" );
Sys_Printf( "--- ProcessGameSpecific ---\n" );
i++;
}
+ else if ( !strcmp( argv[ i ], "-vertexscale" ) ) {
+ f = atof( argv[ i + 1 ] );
+ vertexglobalscale *= f;
+ Sys_Printf( "Vertexlight scaled by %f to %f\n", f, vertexglobalscale );
+ i++;
+ }
+
+ else if ( !strcmp( argv[ i ], "-nolm" ) ) {
+ nolm = qtrue;
+ Sys_Printf( "No lightmaps yo\n" );
+ }
+
else if ( !strcmp( argv[ i ], "-bouncescale" ) ) {
f = atof( argv[ i + 1 ] );
bounceScale *= f;
}
i++;
}
+
else if ( !strcmp( argv[ i ], "-deluxe" ) || !strcmp( argv[ i ], "-deluxemap" ) ) {
deluxemap = qtrue;
Sys_Printf( "Generating deluxemaps for average light direction\n" );
Sys_Printf( "Lightmaps sample scale set to %d\n", sampleScale );
}
else if ( !strcmp( argv[ i ], "-novertex" ) ) {
- noVertexLighting = qtrue;
- Sys_Printf( "Disabling vertex lighting\n" );
+ noVertexLighting = 1;
+ if ( ( atof( argv[ i + 1 ] ) != 0 ) && ( atof( argv[ i + 1 ] )) < 1 ) {
+ noVertexLighting = ( atof( argv[ i + 1 ] ) );
+ i++;
+ Sys_Printf( "Setting vertex lighting globally to %d\n", noVertexLighting );
+ }
+ else{
+ Sys_Printf( "Disabling vertex lighting\n" );
+ }
}
else if ( !strcmp( argv[ i ], "-nogrid" ) ) {
noGridLighting = qtrue;
loMem = qtrue;
Sys_Printf( "Enabling low-memory (potentially slower) lighting mode\n" );
}
+ else if ( !strcmp( argv[ i ], "-lightsubdiv" ) ) {
+ defaultLightSubdivide = atoi( argv[ i + 1 ] );
+ if ( defaultLightSubdivide < 1 ) {
+ defaultLightSubdivide = 1;
+ }
+ i++;
+ Sys_Printf( "Default light subdivision set to %d\n", defaultLightSubdivide );
+ }
else if ( !strcmp( argv[ i ], "-lightanglehl" ) ) {
if ( ( atoi( argv[ i + 1 ] ) != 0 ) != lightAngleHL ) {
lightAngleHL = ( atoi( argv[ i + 1 ] ) != 0 );
else{
Sys_Printf( "Disabling half lambert light angle attenuation\n" );
}
+ i++;
}
}
else if ( !strcmp( argv[ i ], "-nostyle" ) || !strcmp( argv[ i ], "-nostyles" ) ) {
Sys_Printf( "Enabling randomized dirtmapping\n" );
}
else{
- Sys_Printf( "Enabling ordered dir mapping\n" );
+ Sys_Printf( "Enabling ordered dirtmapping\n" );
}
i++;
}