The code isn’t quite clear: Object3D implementation has no occurrence of
customDepthMaterial, but the documentation and the type declaration file both mention
customDepthMaterial, yet these docs mention that the property is only for meshes.
So I have a couple questions:
- Why isn’t this property detailed as existing on Mesh, instead of Object3D?
- Why isn’t there a placeholder in the implementation, like with other properties?
- Because there are different types of meshes, like Mesh, Line, Points? So why not make a base class for all of those, so things are clear when looking at the implementation.
- Because by not explicitly placing the value it is already
undefinedby default? Why not just place it, even if explicitly set to
undefined, so the code is clear?