Skip to content

Instantly share code, notes, and snippets.

@eliemichel
Last active July 26, 2017 08:22
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 eliemichel/ba6218695f1fe1b4e4ac498ab9ba2916 to your computer and use it in GitHub Desktop.
Save eliemichel/ba6218695f1fe1b4e4ac498ab9ba2916 to your computer and use it in GitHub Desktop.
#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