Incorrect material type being returned in MeshDepthMaterial. Fixes #3186.