Loading video...
Video Failed to Load
vec3 f=vec3(.2,.4,1.5),p;for(float i,e,g,S,u;i++<50.;o+=exp(e*5e3-sin(vec4(4,3,2,0)*p.z-log(S)))/50.){p=vec3((FC.xy-.5*r)/r.y*g,g)-i/3e4;mat2 M=rotate2D(t/8.);p.yz*=M*M;p--;p.yx*=M;S=5.;for(int j;j++<20;p/=u)S/=u=dot(p=2.*clamp(p,-f,f)-p,p);g-=e=p.z/S;} #つぶやきGLSL
647,249 views • 2 years ago •via X (Twitter)
10 Comments

live version:

Shaders are some sort of biblically accurate programming.

For some reason this invokes an impending sense of doom

My mother had some curtains like this.

vec3 f = vec3(0.2, 0.4, 1.5), p; for( float i, e, g, S, u; i++ < 50.0; o += exp(e * 5e3 - sin(vec4(4, 3, 2, 0) * p.z - log(S))) / 50.0 ){ p = vec3((FC.xy - 0.5 * r) / r.y * g, g) -i / 3e4; mat2 M = rotate2D(t / 8.0); p.yz *= M*M; p--; p.yx *= M; S = 5.0; for(int j; j++ < 20; p /= u) S /= u = dot(p = (2.0 * clamp(p, -f, f) - p), p); g -= e = p.z/S; }

welcome to the peyote dimension

Long version with mouse/touch enabled navigation. via @CodePen

Reminds me of those animations of protein synthesis in the body.

Please tell me this is just gibberish and not an actual mathematical equation

You won the tweet sized shader contest!

