From 35e92abfcfa99eb3e19015fd23a8dd18261df8be Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Fri, 27 May 2016 12:41:30 -0600 Subject: [PATCH] light: don't cast indirect light in phong/dirtdebug mode --- light/ltface.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/light/ltface.c b/light/ltface.c index bd91861c..db13f8eb 100644 --- a/light/ltface.c +++ b/light/ltface.c @@ -1658,6 +1658,10 @@ LightFace_Bounce(const bsp2_t *bsp, const bsp2_dface_t *face, const lightsurf_t if (!bounce) return; + if (!(debugmode == debugmode_bounce + || debugmode == debugmode_none)) + return; + /* use a style 0 light map */ lightmap = Lightmap_ForStyle(lightmaps, 0, lightsurf);