From 3334b28a02da663b904280de951b3a158c75aace Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 4 May 2016 14:30:10 +0200 Subject: [PATCH] - don't let the light go completely black with software-emulated lighting. --- 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 af5b30a03..0afcb9813 100644 --- a/wadsrc/static/shaders/glsl/main.fp +++ b/wadsrc/static/shaders/glsl/main.fp @@ -134,7 +134,7 @@ float R_DoomLightingEquation(float light, float dist) /* L in the range 0 to 63 */ float L = light * 63.0/31.0; - float min_L = clamp(36.0/31.0 - L, 0.0, 1.0); + float min_L = clamp(36.0/31.0 - L, 0.03, 1.0); // Fix objects getting totally black when close. if (dist < 0.0001)