From 79d1871e567d096f3ae452786a19aaa2bf4d5f73 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Mon, 10 Aug 2015 10:04:25 -0600 Subject: [PATCH] light: document -surflight_subdivide key --- light/light.c | 4 ++-- man/light.1 | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/light/light.c b/light/light.c index d1e17efa..700eb37d 100644 --- a/light/light.c +++ b/light/light.c @@ -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); } diff --git a/man/light.1 b/man/light.1 index 5409d41a..460510a2 100644 --- a/man/light.1 +++ b/man/light.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. .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"