phi16@phi16_·2020年4月15日 #つぶやきGLSL #define f(p)length(.05*cos(9.*p.y*p.x)+cos(p)-.1*cos(9.*(p.z-p.y)))* precision lowp float;uniform float t;void main(){vec3 d=.5-gl_FragCoord.xyz/8e2,o,u=vec3(0,1,2);o.z+=t;for(int i=0;i<99;i++)o+=f(o)d-d;gl_FragColor.xyz=(f(o-d)u+f((o-.6))u.zyx-2.)*exp(.2*(t-o.z));} GIF1444
phi16@phi16_ iqさんの Two Tweets shadertoy.com/view/MsfGzM の移植です (結構壊した) 午後11:53 · 2020年4月15日·Twitter Web App 11