From 633b06efd1f06fe980c1c8f83461d6faa53545aa Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Thu, 24 Aug 2017 00:02:16 -0700 Subject: =?UTF-8?q?Small=20fix=20submitted=20by=20Ana=C3=ABl=20Seghezzi=20?= =?UTF-8?q?to=20his=20subtle=20crt=20shader?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shaders/crt.f.glsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'shaders') diff --git a/shaders/crt.f.glsl b/shaders/crt.f.glsl index d5fcde6..4cbc27b 100644 --- a/shaders/crt.f.glsl +++ b/shaders/crt.f.glsl @@ -50,8 +50,8 @@ void main() vec2 texco = monitorcoord * vec2(width/1024.0, height/-1024.0) + vec2(width/1024.0, height/1024.0); // mask - float maskx = 1.0 - pow(monitorcoord.x, 200.0); - float masky = 1.0 - pow(-monitorcoord.y, 200.0); + float maskx = 1.0 - pow(abs(monitorcoord.x), 200.0); + float masky = 1.0 - pow(abs(-monitorcoord.y), 200.0); float mask = clamp(maskx * masky, 0.0, 1.0); // sharp texcoord -- cgit v1.2.3