Created
October 25, 2019 09:25
-
-
Save luruke/d36c86a5296c6d7f64209e34da87e736 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
vec2 offsetr = vec2(trail.r * 0.003); | |
vec2 offsetg = vec2(trail.r * 0.005); | |
vec2 offsetb = vec2(trail.r * 0.007); | |
float r = texture2D(uScene, uv.xy + offsetr).x; | |
float g = texture2D(uScene, uv.xy + offsetg).y; | |
float b = texture2D(uScene, uv.xy + offsetb).z; | |
vec3 color = vec3(r, g, b); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment