aeon-199x/shaders/module/aberration.frag

11 lines
211 B
GLSL
Raw Normal View History

2024-04-18 00:22:26 -04:00
vec2 caOffset = vec2(pixelSize / viewWidth, 0);
vec3 aberrate() {
float red = texture2D(gcolor, texcoord - caOffset).r;
float blue = texture2D(gcolor, texcoord + caOffset).b;
return vec3(red, 0, blue);
}