Set up some sane vmap defaults.

This commit is contained in:
Marco Cawthorne 2021-10-15 09:56:24 +02:00
parent 991633dfce
commit 6eb872b4c0
Signed by: eukara
GPG Key ID: C196CD8BA993248A
2 changed files with 22 additions and 0 deletions

View File

@ -593,6 +593,7 @@ int BSPMain( int argc, char **argv ){
maxSurfaceIndexes = game->maxSurfaceIndexes;
texturesRGB = game->texturesRGB;
colorsRGB = game->colorsRGB;
sampleSize = 16;
/* process arguments */
for ( i = 1; i < ( argc - 1 ); i++ )

View File

@ -2460,9 +2460,18 @@ int LightMain( int argc, char **argv ){
qboolean lightSamplesInsist = qfalse;
qboolean fastAllocate = qfalse;
/* defaults */
fast = qtrue;
fastgrid = qtrue;
fastbounce = qtrue;
bounce = 8;
dirty = qtrue;
patchShadows = qtrue;
deluxemap = qtrue;
noStyles = qtrue;
sampleSize = 16;
shadeAngleDegrees = 40.0f;
shade = qtrue;
/* note it */
Sys_Printf( "--- Light ---\n" );
@ -2934,6 +2943,10 @@ int LightMain( int argc, char **argv ){
shade = qtrue;
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" ) ) {
bouncegrid = qtrue;
@ -3047,6 +3060,10 @@ int LightMain( int argc, char **argv ){
patchShadows = qtrue;
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" ) ) {
sampleSize = atoi( argv[ i + 1 ] );
if ( sampleSize < 1 ) {
@ -3140,6 +3157,10 @@ int LightMain( int argc, char **argv ){
dirty = qtrue;
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" ) ) {
dirtDebug = qtrue;
Sys_Printf( "Dirtmap debugging enabled\n" );