Doodling with shaders

April 12, 2023

Just an animated doodle.

void main() { vec2 co = (gl_FragCoord.xy-(0.5*vec2(1920.,1080.)))/1920.; float ang = atan(co.x,co.y); co -= (sin(10.*sin(0.1*time)))*cos(3.*sin(time*.01)*ang+15.*sin(time*.03))*(-sign(co)*sqrt(min(abs(co.x),abs(co.y)))); vec2 ico = floor(mod(32.*co,2.)); vec2 ico2 = floor((32.*co)); float i = ico2.y*32.+ico2.x; float l = mod(ico.x+ico.y,2.); vec3 hue = vec3(0.5+0.5*sin(13.*i+time*7.),0.5+0.5*cos(7.*i+time*5.),0.5+0.5*tan(17.*i+time*3.)); gl_FragColor=vec4(hue,l); }