Skip to content

Instantly share code, notes, and snippets.

@nuel
Created September 28, 2021 11:17
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 nuel/b79cca422df86d05611adf55af9fa954 to your computer and use it in GitHub Desktop.
Save nuel/b79cca422df86d05611adf55af9fa954 to your computer and use it in GitHub Desktop.
#ifdef GL_ES
precision mediump float;
#endif
uniform vec2 u_resolution;
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
vec2 coord = (fragCoord.xy / iResolution.xy);
float color = sin(iTime +
cos(coord.x) * 15.2 -
cos(coord.x * 90.0) -
sin(coord.y * 7.0)
) + coord.x;
fragColor = vec4(vec3(color / coord.x, color / coord.y, color), 1.0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment