Skip to content

Commit e4c1050

Browse files
authored
Merge pull request #385 from Unusuario2/vrad-ultrafast-command
New vrad "-ultrafast" command added to vrad.
2 parents c0d729d + f510813 commit e4c1050

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

sp/src/utils/vrad/vrad.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2471,6 +2471,15 @@ int ParseCommandLine( int argc, char **argv, bool *onlydetail )
24712471
{
24722472
do_fast = true;
24732473
}
2474+
#ifdef MAPBASE
2475+
else if(!Q_stricmp(argv[i], "-ultrafast"))
2476+
{
2477+
do_fast = true;
2478+
g_bFastAmbient = true;
2479+
do_extra = false;
2480+
numbounce = 1;
2481+
}
2482+
#endif
24742483
else if (!Q_stricmp(argv[i],"-noskyboxrecurse"))
24752484
{
24762485
g_bNoSkyRecurse = true;
@@ -2777,6 +2786,9 @@ void PrintUsage( int argc, char **argv )
27772786
" -v (or -verbose): Turn on verbose output (also shows more command\n"
27782787
" -bounce # : Set max number of bounces (default: 100).\n"
27792788
" -fast : Quick and dirty lighting.\n"
2789+
#ifdef MAPBASE
2790+
" -ultrafast : Very quick and dirty lighting, same as -fast -fastambient -noextra -bounce 1\n"
2791+
#endif
27802792
" -fastambient : Per-leaf ambient sampling is lower quality to save compute time.\n"
27812793
" -final : High quality processing. equivalent to -extrasky 16.\n"
27822794
" -extrasky n : trace N times as many rays for indirect light and sky ambient.\n"

0 commit comments

Comments
 (0)