Skip to content

Instantly share code, notes, and snippets.

@jimmyjonezz
Created May 4, 2020 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimmyjonezz/49412583806fd49a889b9004a875cda9 to your computer and use it in GitHub Desktop.
Save jimmyjonezz/49412583806fd49a889b9004a875cda9 to your computer and use it in GitHub Desktop.
shader_type canvas_item;
void fragment() {
vec4 left = texture(SCREEN_TEXTURE, SCREEN_UV);
vec4 right = texture(SCREEN_TEXTURE, SCREEN_UV + vec2(0.005, 0.001));
vec3 color = vec3(left.r, right.gb);
color = clamp(color, 0.0, 1.0);
COLOR = vec4(color, 1.0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment