Set up some sane vmap defaults.
This commit is contained in:
parent
991633dfce
commit
6eb872b4c0
2 changed files with 22 additions and 0 deletions
|
@ -593,6 +593,7 @@ int BSPMain( int argc, char **argv ){
|
||||||
maxSurfaceIndexes = game->maxSurfaceIndexes;
|
maxSurfaceIndexes = game->maxSurfaceIndexes;
|
||||||
texturesRGB = game->texturesRGB;
|
texturesRGB = game->texturesRGB;
|
||||||
colorsRGB = game->colorsRGB;
|
colorsRGB = game->colorsRGB;
|
||||||
|
sampleSize = 16;
|
||||||
|
|
||||||
/* process arguments */
|
/* process arguments */
|
||||||
for ( i = 1; i < ( argc - 1 ); i++ )
|
for ( i = 1; i < ( argc - 1 ); i++ )
|
||||||
|
|
|
@ -2460,9 +2460,18 @@ int LightMain( int argc, char **argv ){
|
||||||
qboolean lightSamplesInsist = qfalse;
|
qboolean lightSamplesInsist = qfalse;
|
||||||
qboolean fastAllocate = qfalse;
|
qboolean fastAllocate = qfalse;
|
||||||
|
|
||||||
|
/* defaults */
|
||||||
fast = qtrue;
|
fast = qtrue;
|
||||||
fastgrid = qtrue;
|
fastgrid = qtrue;
|
||||||
fastbounce = qtrue;
|
fastbounce = qtrue;
|
||||||
|
bounce = 8;
|
||||||
|
dirty = qtrue;
|
||||||
|
patchShadows = qtrue;
|
||||||
|
deluxemap = qtrue;
|
||||||
|
noStyles = qtrue;
|
||||||
|
sampleSize = 16;
|
||||||
|
shadeAngleDegrees = 40.0f;
|
||||||
|
shade = qtrue;
|
||||||
|
|
||||||
/* note it */
|
/* note it */
|
||||||
Sys_Printf( "--- Light ---\n" );
|
Sys_Printf( "--- Light ---\n" );
|
||||||
|
@ -2934,6 +2943,10 @@ int LightMain( int argc, char **argv ){
|
||||||
shade = qtrue;
|
shade = qtrue;
|
||||||
Sys_Printf( "Phong shading enabled\n" );
|
Sys_Printf( "Phong shading enabled\n" );
|
||||||
}
|
}
|
||||||
|
else if ( !strcmp( argv[ i ], "-noshade" ) ) {
|
||||||
|
shade = qfalse;
|
||||||
|
Sys_Printf( "Phong shading disabled\n" );
|
||||||
|
}
|
||||||
|
|
||||||
else if ( !strcmp( argv[ i ], "-bouncegrid" ) ) {
|
else if ( !strcmp( argv[ i ], "-bouncegrid" ) ) {
|
||||||
bouncegrid = qtrue;
|
bouncegrid = qtrue;
|
||||||
|
@ -3047,6 +3060,10 @@ int LightMain( int argc, char **argv ){
|
||||||
patchShadows = qtrue;
|
patchShadows = qtrue;
|
||||||
Sys_Printf( "Patch shadow casting enabled\n" );
|
Sys_Printf( "Patch shadow casting enabled\n" );
|
||||||
}
|
}
|
||||||
|
else if ( !strcmp( argv[ i ], "-nopatchshadows" ) ) {
|
||||||
|
patchShadows = qfalse;
|
||||||
|
Sys_Printf( "Patch shadow casting disabled\n" );
|
||||||
|
}
|
||||||
else if ( !strcmp( argv[ i ], "-samplesize" ) ) {
|
else if ( !strcmp( argv[ i ], "-samplesize" ) ) {
|
||||||
sampleSize = atoi( argv[ i + 1 ] );
|
sampleSize = atoi( argv[ i + 1 ] );
|
||||||
if ( sampleSize < 1 ) {
|
if ( sampleSize < 1 ) {
|
||||||
|
@ -3140,6 +3157,10 @@ int LightMain( int argc, char **argv ){
|
||||||
dirty = qtrue;
|
dirty = qtrue;
|
||||||
Sys_Printf( "Dirtmapping enabled\n" );
|
Sys_Printf( "Dirtmapping enabled\n" );
|
||||||
}
|
}
|
||||||
|
else if ( !strcmp( argv[ i ], "-nodirty" ) ) {
|
||||||
|
dirty = qfalse;
|
||||||
|
Sys_Printf( "Dirtmapping disabled\n" );
|
||||||
|
}
|
||||||
else if ( !strcmp( argv[ i ], "-dirtdebug" ) || !strcmp( argv[ i ], "-debugdirt" ) ) {
|
else if ( !strcmp( argv[ i ], "-dirtdebug" ) || !strcmp( argv[ i ], "-debugdirt" ) ) {
|
||||||
dirtDebug = qtrue;
|
dirtDebug = qtrue;
|
||||||
Sys_Printf( "Dirtmap debugging enabled\n" );
|
Sys_Printf( "Dirtmap debugging enabled\n" );
|
||||||
|
|
Loading…
Reference in a new issue