Skip to content

Liquid glass visualizer

Press play, or use your mic. Move the pointer to pull the glass around.

AudioWebGL

Loading the lab

How it works

  • WebGL2
  • GLSL
  • Web Audio
  • Higgsfield
  • TypeScript

The blob is a ray-marched signed distance field: five metaballs smooth-unioned in a single fragment shader. The surface normal bends the backdrop photo for refraction, with the red, green and blue channels offset separately for dispersion, plus a Fresnel rim and two specular highlights.

Sound runs through a Web Audio analyser. Bass swells the volume, the mids ripple the surface and the highs push the dispersion and sparkle. The soundtrack is generated live: detuned pads through a low-pass filter, a sub bass, a soft kick and noise hats, all in Web Audio with no audio files.

The backdrops were generated with Higgsfield: a sunlit glass conservatory for day and a rain-streaked neon street for night.