Merge branch 'mode-def' into color-space
This commit is contained in:
commit
c779d2feee
1 changed files with 2 additions and 2 deletions
|
@ -3,8 +3,8 @@ vec2 caOffset = vec2(2 * pixelSize / viewWidth, 0);
|
||||||
|
|
||||||
vec3 aberrate() {
|
vec3 aberrate() {
|
||||||
vec2 offset = caOffset * cos(texcoord * 3.14);
|
vec2 offset = caOffset * cos(texcoord * 3.14);
|
||||||
float red = texture2D(gcolor, texcoord - offset).r;
|
float red = texture2D(gcolor, texcoord + offset).r;
|
||||||
float blue = texture2D(gcolor, texcoord + offset).b;
|
float blue = texture2D(gcolor, texcoord - offset).b;
|
||||||
|
|
||||||
return vec3(red, 0, blue);
|
return vec3(red, 0, blue);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue