Skip to content

Instantly share code, notes, and snippets.

@MatteoGauthier
Created September 13, 2023 12:34
Show Gist options
  • Save MatteoGauthier/1fbc89856d004868193273a9ff29ef32 to your computer and use it in GitHub Desktop.
Save MatteoGauthier/1fbc89856d004868193273a9ff29ef32 to your computer and use it in GitHub Desktop.
float space = 10.;
vec2 p = (FC.xy * 2.0 - r) / r.y * 3.;
vec2 x, d;
for (float i = 1.0 - fract((t)); i < 25.0; i += 0.5) {
x = p + (cos(i * vec2(0.1, 0.5) + t) + vec2(0, 4.0 - i)) / i * (space / 2.0);
d = vec2(4, sin(i) * 0.4 * x * 2e-1 ) / i * 4.;
o += (cos(max(i, 3.) + vec4(0, 2, 4, 0)) + 1.0) / (length(x - d * clamp(dot(x, d) / dot(d, d), -11.0, 11.0)) + i / 1e8) / max(i * i, 5.0) * .12;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment