Mercurial > repos > blastem
changeset 1439:7da675d0c512
Small fix submitted by Anaƫl Seghezzi to his subtle crt shader
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 24 Aug 2017 00:02:16 -0700 |
parents | e2bd03ed3190 |
children | 7d4483944d4d |
files | shaders/crt.f.glsl |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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