2024-04-18 00:22:26 -04:00
|
|
|
|
2024-04-18 16:45:02 -04:00
|
|
|
vec2 caOffset = vec2(2 * pixelSize / viewWidth, 0);
|
2024-04-18 00:22:26 -04:00
|
|
|
|
2024-05-05 14:48:27 -04:00
|
|
|
vec3 aberrate() {
|
|
|
|
vec2 offset = caOffset * cos(texcoord * 3.14);
|
|
|
|
float red = texture2D(gcolor, texcoord - offset).r;
|
|
|
|
float blue = texture2D(gcolor, texcoord + offset).b;
|
2024-04-18 00:22:26 -04:00
|
|
|
|
|
|
|
return vec3(red, 0, blue);
|
|
|
|
}
|
|
|
|
|