The distance from a point of view at which the scene’s contents are completely obscured by fog. Animatable.
- iOS 8.0+
- macOS 10.10+
- tvOS 9.0+
- watchOS 2.0+
A fog effect causes scene contents to become less visible the farther they are from the
point node currently used for rendering. At distances less than the value of the
fog property, scene contents are fully visible. At greater distances, SceneKit blends the rendered scene contents with a constant color (specified by the
fog property). At distances greater than the
fog property, the scene contents fade away completely and only the fog color is visible. Use fog to add atmospheric effects to your app or game, or to improve rendering performance by hiding parts of the scene that are far away from the current point of view.
The default end distance of
0 disables the fog effect. Change this property’s value to enable fog.
You can animate changes to this property’s value. See Animating SceneKit Content.