light: add -verbose option
This commit is contained in:
parent
81c7b39fa7
commit
700e8d089f
|
|
@ -161,7 +161,8 @@ typedef enum {
|
|||
} debugmode_t;
|
||||
|
||||
extern debugmode_t debugmode;
|
||||
|
||||
extern bool verbose_log;
|
||||
|
||||
/* bounce lights */
|
||||
|
||||
typedef struct {
|
||||
|
|
|
|||
|
|
@ -109,7 +109,9 @@ LightStyleForTargetname(const std::string &targetname)
|
|||
const int newStylenum = LIGHT_TARGETS_START + lightstyleForTargetname.size();
|
||||
lightstyleForTargetname[targetname] = newStylenum;
|
||||
|
||||
logprint("%s: Allocated %d for %s\n", __func__, newStylenum, targetname.c_str());
|
||||
if (verbose_log) {
|
||||
logprint("%s: Allocated lightstyle %d for targetname '%s'\n", __func__, newStylenum, targetname.c_str());
|
||||
}
|
||||
|
||||
return newStylenum;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -85,6 +85,7 @@ qboolean novisapprox = false;
|
|||
bool nolights = false;
|
||||
backend_t rtbackend = backend_embree;
|
||||
debugmode_t debugmode = debugmode_none;
|
||||
bool verbose_log = false;
|
||||
|
||||
uint32_t *extended_texinfo_flags = NULL;
|
||||
|
||||
|
|
@ -1489,6 +1490,8 @@ light_main(int argc, const char **argv)
|
|||
} else if ( !strcmp( argv[ i ], "-debugvert" ) ) {
|
||||
ParseVec3(dump_vert_point, &i, argc, argv);
|
||||
dump_vert = true;
|
||||
} else if ( !strcmp( argv[ i ], "-verbose" ) ) {
|
||||
verbose_log = true;
|
||||
} else if ( !strcmp( argv[ i ], "-help" ) ) {
|
||||
PrintUsage();
|
||||
exit(0);
|
||||
|
|
|
|||
Loading…
Reference in New Issue