+ else if ( !strcmp( argv[ i ], "-lightanglehl" ) ) {
+ if ( ( atoi( argv[ i + 1 ] ) != 0 ) != lightAngleHL ) {
+ lightAngleHL = ( atoi( argv[ i + 1 ] ) != 0 );
+ if ( lightAngleHL ) {
+ Sys_Printf( "Enabling half lambert light angle attenuation\n" );
+ }
+ else{
+ Sys_Printf( "Disabling half lambert light angle attenuation\n" );
+ }
+ }
+ }
+ else if ( !strcmp( argv[ i ], "-nostyle" ) || !strcmp( argv[ i ], "-nostyles" ) ) {
+ noStyles = qtrue;
+ Sys_Printf( "Disabling lightstyles\n" );
+ }
+ else if ( !strcmp( argv[ i ], "-style" ) || !strcmp( argv[ i ], "-styles" ) ) {
+ noStyles = qfalse;
+ Sys_Printf( "Enabling lightstyles\n" );
+ }
+ else if ( !strcmp( argv[ i ], "-cpma" ) ) {
+ cpmaHack = qtrue;
+ Sys_Printf( "Enabling Challenge Pro Mode Asstacular Vertex Lighting Mode (tm)\n" );
+ }
+ else if ( !strcmp( argv[ i ], "-floodlight" ) ) {
+ floodlighty = qtrue;
+ Sys_Printf( "FloodLighting enabled\n" );
+ }
+ else if ( !strcmp( argv[ i ], "-debugnormals" ) ) {
+ debugnormals = qtrue;
+ Sys_Printf( "DebugNormals enabled\n" );
+ }
+ else if ( !strcmp( argv[ i ], "-lowquality" ) ) {
+ floodlight_lowquality = qtrue;
+ Sys_Printf( "Low Quality FloodLighting enabled\n" );
+ }
+
+ /* r7: dirtmapping */
+ else if ( !strcmp( argv[ i ], "-dirty" ) ) {
+ dirty = qtrue;
+ Sys_Printf( "Dirtmapping enabled\n" );
+ }
+ else if ( !strcmp( argv[ i ], "-dirtdebug" ) || !strcmp( argv[ i ], "-debugdirt" ) ) {
+ dirtDebug = qtrue;
+ Sys_Printf( "Dirtmap debugging enabled\n" );
+ }
+ else if ( !strcmp( argv[ i ], "-dirtmode" ) ) {
+ dirtMode = atoi( argv[ i + 1 ] );
+ if ( dirtMode != 0 && dirtMode != 1 ) {
+ dirtMode = 0;
+ }
+ if ( dirtMode == 1 ) {
+ Sys_Printf( "Enabling randomized dirtmapping\n" );
+ }
+ else{
+ Sys_Printf( "Enabling ordered dir mapping\n" );
+ }
+ i++;
+ }
+ else if ( !strcmp( argv[ i ], "-dirtdepth" ) ) {
+ dirtDepth = atof( argv[ i + 1 ] );
+ if ( dirtDepth <= 0.0f ) {
+ dirtDepth = 128.0f;
+ }
+ Sys_Printf( "Dirtmapping depth set to %.1f\n", dirtDepth );
+ i++;
+ }
+ else if ( !strcmp( argv[ i ], "-dirtscale" ) ) {
+ dirtScale = atof( argv[ i + 1 ] );
+ if ( dirtScale <= 0.0f ) {
+ dirtScale = 1.0f;
+ }
+ Sys_Printf( "Dirtmapping scale set to %.1f\n", dirtScale );
+ i++;
+ }
+ else if ( !strcmp( argv[ i ], "-dirtgain" ) ) {
+ dirtGain = atof( argv[ i + 1 ] );
+ if ( dirtGain <= 0.0f ) {
+ dirtGain = 1.0f;
+ }
+ Sys_Printf( "Dirtmapping gain set to %.1f\n", dirtGain );
+ i++;
+ }
+ else if ( !strcmp( argv[ i ], "-trianglecheck" ) ) {
+ lightmapTriangleCheck = qtrue;
+ }
+ else if ( !strcmp( argv[ i ], "-extravisnudge" ) ) {
+ lightmapExtraVisClusterNudge = qtrue;
+ }
+ else if ( !strcmp( argv[ i ], "-fill" ) ) {
+ lightmapFill = qtrue;
+ Sys_Printf( "Filling lightmap colors from surrounding pixels to improve JPEG compression\n" );
+ }
+ /* unhandled args */