From f510813be7fc3902a6ff176639099b241c49b972 Mon Sep 17 00:00:00 2001 From: david krekic Date: Sat, 8 Feb 2025 15:47:18 +0100 Subject: [PATCH] added to vrad "-ultrafast" --- sp/src/utils/vrad/vrad.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sp/src/utils/vrad/vrad.cpp b/sp/src/utils/vrad/vrad.cpp index a7cba1c0..a04a6780 100644 --- a/sp/src/utils/vrad/vrad.cpp +++ b/sp/src/utils/vrad/vrad.cpp @@ -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"