three.js: DOF2 example broken
The dof2 example seems to have stopped working since r91 and r90 or even before that.
My guess is it’s the depthMaterial = new THREE.MeshDepthMaterial(); returning blank/black result but I’m pretty new to threejs so I wouldn’t know.
It appears to be working better in r88 - https://jsfiddle.net/3bvpr75n/4/
Any idea for a quick fix besides downgrading?
Three.js version
- r91
Browser
- All of them
OS
- All of them
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 20 (4 by maintainers)
Or maybe @zz85 could take a look?
Can you please check if it looks better with this adjusted fiddle? https://jsfiddle.net/3bvpr75n/14/
The depth texture is sampled differently now.