From c29651da95ce7c4c6e64625a17737c12c13c5903 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Mon, 2 Jul 2018 17:31:48 +0300 Subject: [PATCH] - restored initial grayscale conversion in fragment shader Accidental change of red color multiplier was discovered during investigation of https://forum.zdoom.org/viewtopic.php?t=61126 --- 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 0fdd3abdd..013a1881e 100644 --- a/wadsrc/static/shaders/glsl/main.fp +++ b/wadsrc/static/shaders/glsl/main.fp @@ -25,7 +25,7 @@ vec3 ProcessMaterial(vec3 material, vec3 color); float grayscale(vec4 color) { - return dot(color.rgb, vec3(0.4, 0.56, 0.14)); + return dot(color.rgb, vec3(0.3, 0.56, 0.14)); } //===========================================================================