← Back to the lab Deep dive · 02
Move to merge · click to launch

Liquid Metaball Shader

Every pixel solves a signed-distance field for a swarm of orbiting spheres, blended with a smooth-minimum so they melt into one glowing mass instead of just overlapping. Move your cursor to merge your own blob into the field, click to launch molten droplets that get absorbed. Iridescent color comes from a cosine palette, not a texture. ~100 lines of raw GLSL, no Three.js.