Spectral transmission · three.js

Glass that bends light, in real time.

A single-file WebGL2 material with two-bounce refraction, edge dispersion and a water surface that answers to your hand.

Compiling shaders