blob: 7f2dba80c1a990057b9768c50bb86f25033702ee [file] [log] [blame]
uniform float3 iResolution;uniform float iTime;float f(vec3 b){b.z-=iTime*10.;float c=b.z*.1;b.xy*=mat2(cos(c),sin(c),-sin(c),cos(c));return.1-length(cos(b.xy)+sin(b.yz));}half4 main(vec2 a){vec3 b=.5-float3(a,1.)/iResolution.y;vec3 c=vec3(0.);for(int e=0;e<32;e++)c+=f(c)*b;return half4(float4((sin(c)+vec3(2.,5.,9.))/length(c),1.));}