---
title: fogColor
framework: scenekit
role: symbol
role_heading: Instance Property
path: scenekit/scnscene/fogcolor
---

# fogColor

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

## Declaration

```swift
var fogColor: Any { get set }
```

## Discussion

Discussion This property’s value can be an NSColor object (in macOS), a UIColor object (in iOS), or a CGColor 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](scenekit/scnscene/fogstartdistance.md)
- [fogEndDistance](scenekit/scnscene/fogenddistance.md)
- [fogDensityExponent](scenekit/scnscene/fogdensityexponent.md)
