A Boolean value that determines whether SceneKit produces depth information when rendering the material.
- iOS 8.0+
- macOS 10.8+
- tvOS 9.0+
- watchOS 3.0+
SceneKit’s rendering process uses a depth buffer to determine the ordering of rendered surfaces relative to the viewer. The default value of this property is
YES, specifying that SceneKit saves depth information for each rendered pixel for use by later rendering passes.
Typically, you disable writing to the depth buffer when rendering semitransparent objects, because later stages of the rendering process may require depth information about the opaque objects behind them.