r/creativecoding • • Sep 01 '26

plasma

Made with my perfect loop gif web app

166 Upvotes

7 comments sorted by

View all comments

Show parent comment

2

u/First_Buy8488 Sep 02 '26
 float sphereMesh = abs(sdSphere(p, 1.2)) - 0.06;
          vec3 r1 = p; r1.xy *= rot(t);
          float ring1 = sdTorus(r1, vec2(1.38, 0.06));
          vec3 r2 = p; r2.yz *= rot(t + PI * 0.3333);
          float ring2 = sdTorus(r2, vec2(1.48, 0.06));
          float coreOrb = sdSphere(p, 0.5 + 0.08 * sin(t * 3.0));
          d = min(sphereMesh, min(ring1, min(ring2, coreOrb)));