Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#define a(p) textureLod(iChannel0, p, 2.5)
#define t texture(iChannel1,
void mainImage( out vec4 c, vec2 g )
{
c = a(g /= iResolution.xy);
vec2 x = vec2(20);
vec4 n = t round(g*x - .3) / x);
vec2 z = g*x * 6.3 + (t g * .1).rg - .5) * 2.;
x = sin(z) - fract(iTime * (n.b + .1) + n.g) * .5;
x.x+x.y-n.r*3. > .5 ? c = a(g + cos(z) * .2) : c;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment