summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2017-08-24 00:02:16 -0700
committerMichael Pavone <pavone@retrodev.com>2017-08-24 00:02:16 -0700
commit633b06efd1f06fe980c1c8f83461d6faa53545aa (patch)
tree3b0afce37d050bb9d6b65dbba0adab50375ce5b0
parentfacf0dd0e1606223da276bbf3984c55ca84e83d9 (diff)
Small fix submitted by Anaƫl Seghezzi to his subtle crt shader
-rw-r--r--shaders/crt.f.glsl4
1 files changed, 2 insertions, 2 deletions
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