Skip to content

gkjohnson/three-depthpeeling-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

depth-peeling-demo

Demonstration of depth peeling for transparency improved rendering in three.js using re-assignable depth buffers for render targets.

Robot demo here

Drone CAD demo here

Transparent model rendered with depth peeling.

Model Attributions

Possible Improvements

  • Try stenciling the model area to see if performance improves with lots of layers
  • Composite into a common buffer on every layer render
  • Perform a depth prepass per layer to avoid discarding expensive fragments
  • Limit render viewport to avoid copying and blending of of unused pixels
  • Add an epsilon to reduce z fighting on depth comparisons on certain hardware

About

Demonstration of depth peeling in three.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published