Implementing Depth Pre-Pass Optimization for Three.JS

from blog cprimozic.net Blog, | ↗ original
This is a follow-up post that improves upon one I wrote yesterday. The last post implemented this optimization in a manual way, but it turns out that it's possible to do it in a much simpler and more efficient manner using built-in WebGL/OpenGL features. Thanks to /u/kibakufuda and /u/cesium-sandwich in the reddit comments for sharing that info!...