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-04 00:33:08 -04:00
|
|
|
vec3 aberrate(vec3 color) {
|
2024-04-18 11:41:47 -04:00
|
|
|
vec2 offset = caOffset * abs(cos(texcoord * 3.14));
|
2024-05-04 00:33:08 -04:00
|
|
|
float red = color.r;
|
|
|
|
float blue = color.b;
|
2024-04-18 00:22:26 -04:00
|
|
|
|
|
|
|
return vec3(red, 0, blue);
|
|
|
|
}
|
|
|
|
|