Last active
July 26, 2017 08:22
-
-
Save eliemichel/ba6218695f1fe1b4e4ac498ab9ba2916 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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