Skip to main content

An interactive three.js and WebGL experiment with rippling liquid refraction, orbiting bubbles and hover chimes.

What it is

An interactive three.js and WebGL experiment with rippling liquid refraction, orbiting bubbles and hover chimes.

Liquid Refraction is Jehad Uddin’s MIT-licensed three.js project. In the live demo, a liquid sphere refracts the scene while smaller bubbles orbit it. The sphere ripples with 3D Simplex noise, bulges near the cursor and uses Web Audio for hover chimes.

The scene uses MeshPhysicalMaterial with a water-like index of refraction of 1.33, transmission, thickness, clearcoat and dispersion. The TypeScript and Vite project uses EffectComposer, UnrealBloomPass and ACES Filmic tone mapping for its post-processing.

Key features

  • Refract the scene with a three.js physical material and a water-like index of refraction of 1.33
  • Displace the sphere with 3D Simplex noise and cursor-reactive GLSL
  • Detect bubble hover with raycasting and play Web Audio chimes
  • Add bloom with UnrealBloomPass and ACES Filmic tone mapping

Pricing

Free

Free and open source under the MIT license.

Prices and plan availability can change.

Who it’s for

Listed category · Developer Tools

Related tools

FAQs

Can I try Liquid Refraction in a browser?
Yes. The live demo lets you move over the liquid sphere and hover over the orbiting bubbles.
Can I use the code in my own project?
The repository is available under the MIT license.
How do I run the project locally?
It uses TypeScript and Vite. Use npm run dev for the development server or npm run build for production. The README lists the scripts.
Is Liquid Refraction free?
The catalog lists Liquid Refraction as free. Free and open source under the MIT license.

Last updated

Featured