From b359b65f35c442e86693e019751e94fbc7ead600 Mon Sep 17 00:00:00 2001 From: drfrag Date: Thu, 20 Jun 2019 23:40:38 +0200 Subject: [PATCH] - Fixed dithering in the present shader. --- wadsrc/static/shaders/glsl/present.fp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wadsrc/static/shaders/glsl/present.fp b/wadsrc/static/shaders/glsl/present.fp index 18d4bbea7..fca1a0406 100644 --- a/wadsrc/static/shaders/glsl/present.fp +++ b/wadsrc/static/shaders/glsl/present.fp @@ -2,13 +2,13 @@ in vec2 TexCoord; out vec4 FragColor; -uniform sampler2D InputTexture; +layout(binding=0) uniform sampler2D InputTexture; uniform float InvGamma; uniform float Contrast; uniform float Brightness; uniform float Saturation; uniform int GrayFormula; -uniform sampler2D DitherTexture; +layout(binding=1) uniform sampler2D DitherTexture; uniform float ColorScale; vec4 ApplyGamma(vec4 c)