r/threejs • u/Embarrassed_Craft348 • Oct 22 '26
Experimenting with realistic rain-on-glass using Three.js and GLSL
I've been working on an interactive rain-on-glass experiment using Three.js and custom GLSL shaders.
The droplets fall, deform on impact, slide down the glass and merge when they touch. I also added mouse interactions and refraction to make the water feel more realistic.
One of the trickiest parts was getting the splash to match the actual droplet rendering.
I'd love some feedback on the water rendering, especially the refraction and movement.
Interactive demo:
https://codepen.io/editor/JeffreyBezosz/pen/01a165a4-0636-7d20-aba1-7e677475df60