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.));} |