Created
May 4, 2020 13:45
-
-
Save jimmyjonezz/49412583806fd49a889b9004a875cda9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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