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?
Can I use the code in my own project?
How do I run the project locally?
Is Liquid Refraction free?
Last updated
Featured
Free Guide: Make Money with AI
SponsoredDownload the guide from HubSpot
Free Guide: 100 Side Hustle Ideas
SponsoredDownload the guide from HubSpot
Free Guide: ChatGPT at Work
SponsoredDownload the guide from HubSpot
Free Course: AI for Business
Sponsored4-part crash course from HubSpot
Free Guide: The $0 Hire
SponsoredDownload the guide from BELAY





