From b79b1aad5321389d0b2bad7aa4ea30ded6f2251f Mon Sep 17 00:00:00 2001 From: Emile Belanger Date: Sun, 24 Oct 2021 12:47:31 +0100 Subject: [PATCH] Fix fade for GLES --- wadsrc/static/shaders_gles/glsl/main.fp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/wadsrc/static/shaders_gles/glsl/main.fp b/wadsrc/static/shaders_gles/glsl/main.fp index 5265e3b1f..33516d5c8 100644 --- a/wadsrc/static/shaders_gles/glsl/main.fp +++ b/wadsrc/static/shaders_gles/glsl/main.fp @@ -563,8 +563,6 @@ void main() } #endif - gl_FragColor = frag; - - //gl_FragColor = vec4(0.8, 0.2, 0.5, 1); + gl_FragColor = vec4(frag.rgb * uDynLightColor.a, frag.a); // apply a global fade factor. }