From 410bbdbf16fed29f4e645d3163eb6d74855b94d4 Mon Sep 17 00:00:00 2001 From: Valerie Date: Fri, 17 May 2024 21:19:42 -0400 Subject: [PATCH] corrected color positions for chromatic aberration --- shaders/module/aberration.frag | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shaders/module/aberration.frag b/shaders/module/aberration.frag index d7efcf0..7253cf3 100644 --- a/shaders/module/aberration.frag +++ b/shaders/module/aberration.frag @@ -3,8 +3,8 @@ vec2 caOffset = vec2(2 * pixelSize / viewWidth, 0); vec3 aberrate() { vec2 offset = caOffset * cos(texcoord * 3.14); - float red = texture2D(gcolor, texcoord - offset).r; - float blue = texture2D(gcolor, texcoord + offset).b; + float red = texture2D(gcolor, texcoord + offset).r; + float blue = texture2D(gcolor, texcoord - offset).b; return vec3(red, 0, blue); }