From 0cfe79d85d7de30a56255ade428899bf1a8afd30 Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Mon, 6 Aug 2018 21:51:23 -0400 Subject: [PATCH] - further math tweaks --- wadsrc/static/shaders/glsl/present.fp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/wadsrc/static/shaders/glsl/present.fp b/wadsrc/static/shaders/glsl/present.fp index 290410974..8911c430a 100644 --- a/wadsrc/static/shaders/glsl/present.fp +++ b/wadsrc/static/shaders/glsl/present.fp @@ -17,12 +17,12 @@ vec4 ApplyGamma(vec4 c) return vec4(val, c.a); } -float halfstep = 15./32.; +float halfstep = 1./32.; float DitherMatrix[16] = float[]( - 0.0 / 16.0 - halfstep, 8.0 / 16.0 - halfstep, 2.0 / 16.0 - halfstep, 10.0 / 16.0 - halfstep, - 12.0 / 16.0 - halfstep, 4.0 / 16.0 - halfstep, 14.0 / 16.0 - halfstep, 6.0 / 16.0 - halfstep, - 3.0 / 16.0 - halfstep, 11.0 / 16.0 - halfstep, 1.0 / 16.0 - halfstep, 9.0 / 16.0 - halfstep, - 15.0 / 16.0 - halfstep, 7.0 / 16.0 - halfstep, 13.0 / 16.0 - halfstep, 5.0 / 16.0 - halfstep + 0.0 / 16.0 + halfstep, 8.0 / 16.0 + halfstep, 2.0 / 16.0 + halfstep, 10.0 / 16.0 + halfstep, + 12.0 / 16.0 + halfstep, 4.0 / 16.0 + halfstep, 14.0 / 16.0 + halfstep, 6.0 / 16.0 + halfstep, + 3.0 / 16.0 + halfstep, 11.0 / 16.0 + halfstep, 1.0 / 16.0 + halfstep, 9.0 / 16.0 + halfstep, + 15.0 / 16.0 + halfstep, 7.0 / 16.0 + halfstep, 13.0 / 16.0 + halfstep, 5.0 / 16.0 + halfstep ); vec4 Dither(vec4 c, float colorscale)