light: document -surflight_subdivide key

This commit is contained in:
Eric Wasylishen 2015-08-10 10:04:25 -06:00
parent 077aae694e
commit 79d1871e56
2 changed files with 5 additions and 2 deletions

View File

@ -357,7 +357,7 @@ main(int argc, const char **argv)
logprint( "Fence texture tracing enabled on command line\n" );
} else if ( !strcmp( argv[ i ], "-surflight_subdivide" ) ) {
surflight_subdivide = atof( argv[ ++i ] );
surflight_subdivide = qmin(qmax(surflight_subdivide, 128.0f), 2048.0f);
surflight_subdivide = qmin(qmax(surflight_subdivide, 64.0f), 2048.0f);
logprint( "Using surface light subdivision size of %f\n", surflight_subdivide);
} else if (argv[i][0] == '-')
Error("Unknown option \"%s\"", argv[i]);
@ -370,7 +370,7 @@ main(int argc, const char **argv)
" [-light num] [-addmin] [-anglescale|-anglesense]\n"
" [-dist n] [-range n] [-gate n] [-lit] [-lux]\n"
" [-dirt] [-dirtdebug] [-dirtmode n] [-dirtdepth n] [-dirtscale n] [-dirtgain n]\n"
" [-soft [n]] [-fence] [-gamma n] bspfile\n");
" [-soft [n]] [-fence] [-gamma n] [-surflight_subdivide n] bspfile\n");
exit(1);
}

View File

@ -77,6 +77,9 @@ transparent pixels to block light.
Adjust brightness of final lightmap. Default 1, >1 is brighter, <1 is darker. See "_gamma" worldspawn key.
.IP "\fB\-lux\fP"
Generate a .lux file storing average incoming light directions for surfaces. Usable by FTEQW with "r_deluxemapping 1"
.IP "\fB\-surflight_subdivide [n]\fP"
Configure spacing of all surface lights. Default 128 units. Minimum setting: 64 / max 2048.
In the future I'd like to make this configurable per-surface-light.
.SH "MODEL ENTITY KEYS"