light: document -surflight_subdivide key
This commit is contained in:
parent
077aae694e
commit
79d1871e56
|
|
@ -357,7 +357,7 @@ main(int argc, const char **argv)
|
||||||
logprint( "Fence texture tracing enabled on command line\n" );
|
logprint( "Fence texture tracing enabled on command line\n" );
|
||||||
} else if ( !strcmp( argv[ i ], "-surflight_subdivide" ) ) {
|
} else if ( !strcmp( argv[ i ], "-surflight_subdivide" ) ) {
|
||||||
surflight_subdivide = atof( argv[ ++i ] );
|
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);
|
logprint( "Using surface light subdivision size of %f\n", surflight_subdivide);
|
||||||
} else if (argv[i][0] == '-')
|
} else if (argv[i][0] == '-')
|
||||||
Error("Unknown option \"%s\"", argv[i]);
|
Error("Unknown option \"%s\"", argv[i]);
|
||||||
|
|
@ -370,7 +370,7 @@ main(int argc, const char **argv)
|
||||||
" [-light num] [-addmin] [-anglescale|-anglesense]\n"
|
" [-light num] [-addmin] [-anglescale|-anglesense]\n"
|
||||||
" [-dist n] [-range n] [-gate n] [-lit] [-lux]\n"
|
" [-dist n] [-range n] [-gate n] [-lit] [-lux]\n"
|
||||||
" [-dirt] [-dirtdebug] [-dirtmode n] [-dirtdepth n] [-dirtscale n] [-dirtgain n]\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);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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.
|
Adjust brightness of final lightmap. Default 1, >1 is brighter, <1 is darker. See "_gamma" worldspawn key.
|
||||||
.IP "\fB\-lux\fP"
|
.IP "\fB\-lux\fP"
|
||||||
Generate a .lux file storing average incoming light directions for surfaces. Usable by FTEQW with "r_deluxemapping 1"
|
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"
|
.SH "MODEL ENTITY KEYS"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue