From 42293896801364cfb4eb1e316a868f23aabb92c1 Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Wed, 21 Jun 2017 19:10:39 -0400 Subject: [PATCH] - fixed: banded sw light was broken in a recent commit. Added back the 32 light levels and also made it prefer darker shades. --- wadsrc/static/shaders/glsl/main.fp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wadsrc/static/shaders/glsl/main.fp b/wadsrc/static/shaders/glsl/main.fp index fd520ce0b1..ee113676bf 100644 --- a/wadsrc/static/shaders/glsl/main.fp +++ b/wadsrc/static/shaders/glsl/main.fp @@ -120,7 +120,7 @@ float R_DoomLightingEquation(float light) float shade = 2.0 - (L + 12.0) / 128.0; float lightscale; if (uPalLightLevels != 0) - lightscale = float(int(shade - vis)); + lightscale = float(-int(-(shade - vis) * 32.0)) / 32.0; else lightscale = shade - vis;