Merge pull request #385 from Unusuario2/vrad-ultrafast-command

New vrad "-ultrafast" command added to vrad.
This commit is contained in:
Blixibon 2025-02-09 11:49:52 -06:00 committed by GitHub
commit e4c10506a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2471,6 +2471,15 @@ int ParseCommandLine( int argc, char **argv, bool *onlydetail )
{
do_fast = true;
}
#ifdef MAPBASE
else if(!Q_stricmp(argv[i], "-ultrafast"))
{
do_fast = true;
g_bFastAmbient = true;
do_extra = false;
numbounce = 1;
}
#endif
else if (!Q_stricmp(argv[i],"-noskyboxrecurse"))
{
g_bNoSkyRecurse = true;
@ -2777,6 +2786,9 @@ void PrintUsage( int argc, char **argv )
" -v (or -verbose): Turn on verbose output (also shows more command\n"
" -bounce # : Set max number of bounces (default: 100).\n"
" -fast : Quick and dirty lighting.\n"
#ifdef MAPBASE
" -ultrafast : Very quick and dirty lighting, same as -fast -fastambient -noextra -bounce 1\n"
#endif
" -fastambient : Per-leaf ambient sampling is lower quality to save compute time.\n"
" -final : High quality processing. equivalent to -extrasky 16.\n"
" -extrasky n : trace N times as many rays for indirect light and sky ambient.\n"