Instance Property

fogColor

The color of the fog effect to be rendered with the scene. Animatable.

Declaration

@property(nonatomic, retain) id fogColor;

Discussion

This property’s value can be an NSColor object (in macOS), a UIColor object (in iOS), or a CGColorRef object. The default fog color is white.

You can animate changes to this property’s value. See Animating SceneKit Content.

See Also

Adding Fog to a Scene

fogStartDistance

The distance from a point of view at which the scene’s contents begin to be obscured by fog. Animatable.

fogEndDistance

The distance from a point of view at which the scene’s contents are completely obscured by fog. Animatable.

fogDensityExponent

The transition curve for the fog’s intensity between its start and end distances. Animatable.