Skip to content

Documented some vrad options. #395

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 22 additions & 16 deletions sp/src/utils/vrad/vrad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "loadcmdline.h"
#include "byteswap.h"

#define ALLOWDEBUGOPTIONS (0 || _DEBUG)
//#define ALLOWDEBUGOPTIONS (0 || _DEBUG)

static FileHandle_t pFpTrans = NULL;

Expand Down Expand Up @@ -94,7 +94,7 @@ bool g_bShowStaticPropNormals = false;


float gamma_value = 0.5;
float indirect_sun = 1.0;
//float indirect_sun = 1.0;
float reflectivityScale = 1.0;
qboolean do_extra = true;
bool debug_extra = false;
Expand Down Expand Up @@ -2662,8 +2662,7 @@ int ParseCommandLine( int argc, char **argv, bool *onlydetail )
return 1;
}
}

#if ALLOWDEBUGOPTIONS
#ifdef MAPBASE
else if (!Q_stricmp(argv[i],"-scale"))
{
if ( ++i < argc )
Expand Down Expand Up @@ -2702,18 +2701,18 @@ int ParseCommandLine( int argc, char **argv, bool *onlydetail )
return 1;
}
}
else if (!Q_stricmp(argv[i],"-sky"))
{
if ( ++i < argc )
{
indirect_sun = (float)atof (argv[i]);
}
else
{
Warning("Error: expected a value after '-sky'\n" );
return 1;
}
}
// else if (!Q_stricmp(argv[i],"-sky"))
// {
// if ( ++i < argc )
// {
// indirect_sun = (float)atof (argv[i]);
// }
// else
// {
// Warning("Error: expected a value after '-sky'\n" );
// return 1;
// }
// }
else if (!Q_stricmp(argv[i],"-notexscale"))
{
texscale = false;
Expand Down Expand Up @@ -2820,6 +2819,13 @@ void PrintUsage( int argc, char **argv )
" -chop : Smallest number of luxel widths for a bounce patch, used on edges\n"
" -maxchop : Coarsest allowed number of luxel widths for a patch, used in face interiors\n"
"\n"
#ifdef MAPBASE
" -coring # : Scale the light threshold before a luxel is completely unlit, used to save lightmap data. (default 1.0)\n"
" -ambient # # # : Sets the ambient term. Can be used to tweak lightmap color. Mixes the color into all lightmaps.\n"
" -scale # : Scales all the lights by a # factor. (default 1.0) \n"
" -dlight # : Set the dlight_threshold constant. (default 0.1)"
" -notexscale : Disables calculation of the texture and lightmap scaling factors for a patch.\n"
#endif
" -LargeDispSampleRadius: This can be used if there are splotches of bounced light\n"
" on terrain. The compile will take longer, but it will gather\n"
" light across a wider area.\n"
Expand Down