From 001baec444c86b64b36e79bbae72a30cf04da6c6 Mon Sep 17 00:00:00 2001 From: Alug Date: Tue, 2 Jul 2024 23:08:24 +0200 Subject: [PATCH] scale dithering a little diff for a little smoother "fade" in pal render --- src/hardware/hw_shaders.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hardware/hw_shaders.h b/src/hardware/hw_shaders.h index a9c5fa4da..5c349555c 100644 --- a/src/hardware/hw_shaders.h +++ b/src/hardware/hw_shaders.h @@ -81,7 +81,11 @@ "3.0, 11.0, 1.0, 9.0,\n" \ "15.0, 7.0, 13.0, 5.0\n" \ ");\n" \ + "#ifdef SRB2_PALETTE_RENDERING\n" \ + "float threshold = bayerMatrix[y*4 + x] / 12.0;\n" \ + "#else\n" \ "float threshold = bayerMatrix[y*4 + x] / 16.0;\n" \ + "#endif\n" \ "return baseValue + threshold - 0.5 / 16.0;\n" \ #define GLSL_DOOM_COLORMAP_NODITHER \