11 lines
211 B
GLSL
11 lines
211 B
GLSL
|
|
||
|
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);
|
||
|
}
|
||
|
|