From 1562d645802f3c6e14e8e78c01418744cd617681 Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Sun, 25 Jun 2017 09:37:14 -0400 Subject: [PATCH] - fixed: in the availability of gl_fogmode == 0, default to having square fog instead of radial fog in gl_lightmode == 8 --- wadsrc/static/shaders/glsl/main.fp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wadsrc/static/shaders/glsl/main.fp b/wadsrc/static/shaders/glsl/main.fp index d778aa240a..0c27e8cf0b 100644 --- a/wadsrc/static/shaders/glsl/main.fp +++ b/wadsrc/static/shaders/glsl/main.fp @@ -114,13 +114,13 @@ float R_DoomLightingEquation(float light) // z is the depth in view/eye space, positive going into the screen float z; - if ((uPalLightLevels >> 8) == 1) + if ((uPalLightLevels >> 8) == 2) { - z = pixelpos.w; + z = distance(pixelpos.xyz, uCameraPos.xyz); } else { - z = distance(pixelpos.xyz, uCameraPos.xyz); + z = pixelpos.w; } // The zdoom light equation