summaryrefslogtreecommitdiff
path: root/shaders
diff options
context:
space:
mode:
Diffstat (limited to 'shaders')
-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