Three.js glass absorption
This project fakes glass absorption by using depth-peeling to gather how long a light ray traveled before entering the virtual camera
It is non-physical since rays don't take refraction into account but nonetheless an interesting shader for glass materials in Three.js
See it in action
either download the repo and open index.html
inside the dist
folder or
see it in action from my website