Conversation

#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?
2
10
Replying to
stunning! this looks like exactly what I have to do! do you know if there are any examples of that being implemented? I always get pretty lost when trying to make shaders that need to fit within the three shader system :///
1
2
Replying to and
Note that there's customDepthMaterial and customDistanceMaterial - for shadowmaps, one affects spot/directional lights while the other affects point lights. I'm not really sure what the difference is, or which one DOF relies on.
1