Skip to content

Instantly share code, notes, and snippets.

@luruke
Created October 25, 2019 09:25
Show Gist options
  • Save luruke/d36c86a5296c6d7f64209e34da87e736 to your computer and use it in GitHub Desktop.
Save luruke/d36c86a5296c6d7f64209e34da87e736 to your computer and use it in GitHub Desktop.
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