# HG changeset patch # User Michael Pavone # Date 1503558136 25200 # Node ID 7da675d0c5129c28759d770cdb6c468c2b853fc5 # Parent e2bd03ed3190d057036e0f311554e96d6f2cdef8 Small fix submitted by Anaƫl Seghezzi to his subtle crt shader diff -r e2bd03ed3190 -r 7da675d0c512 shaders/crt.f.glsl --- a/shaders/crt.f.glsl Wed Aug 23 21:18:17 2017 -0700 +++ b/shaders/crt.f.glsl Thu Aug 24 00:02:16 2017 -0700 @@ -50,8 +50,8 @@ 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