Creates a level of detail with the specified geometry and threshold camera distance.
- iOS 8.0+
- macOS 10.9+
- tvOS 9.0+
- watchOS 3.0+
The geometry to render for this level of detail, or
nilif SceneKit should render no geometry at this level of detail.
The minimum distance from the current point of view for this level of detail to appear.
When rendering a geometry with associated levels of detail, SceneKit calculates the distance from the current point of view to the geometry’s parent node, then renders the geometry for the
SCNLevel object with the smallest
distance parameter greater than that distance.
If you pass
nil for the geometry parameter, SceneKit renders no geometry for the level of detail. Creating a level-of-detail object with no geometry allows you to skip rendering costs entirely for an object when it would appear very far away or very small.