#threejs nerds! : I'm working with some DOF stuff, but it seems like every custom shader I work with isn't writing correctly to the depth buffer? Any way to fix / links to tutorials / tips?
Conversation
Replying to
You may need to implement your own customDepthMaterial for those objects
threejs.org/docs/#api/en/c
1
2
Replying to
I can't remember if there's an official example, I do recall having to dig pretty deep to find how they work though. Here's the relevant code from my own engine, luckily it's not too complicated

