Skip to content

Domenicobrz/threejs-glass-absorption

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
css
 
 
js
 
 
 
 
 
 
 
 
 
 

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

About

Faking glass absorption through depth peeling

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages