<!--
{
  "availability" : [
    "iOS: 8.0.0 - 26.0.0",
    "iPadOS: 8.0.0 - 26.0.0",
    "macCatalyst: 13.1.0 - 26.0.0",
    "macOS: 10.8.0 - 26.0.0",
    "tvOS: 9.0.0 - 26.0.0",
    "visionOS: 1.0.0 - 26.0.0",
    "watchOS: 3.0.0 - 26.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SceneKit",
  "identifier" : "/documentation/SceneKit/SCNScene/fogEndDistance",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "SceneKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SCNScene(py)fogEndDistance"
  },
  "title" : "fogEndDistance"
}
-->

# fogEndDistance

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

```
var fogEndDistance: CGFloat { get set }
```

## Discussion

A fog effect causes scene contents to become less visible the farther they are from the [`pointOfView`](/documentation/SceneKit/SCNSceneRenderer/pointOfView) node currently used for rendering. At distances less than the value of the [`fogStartDistance`](/documentation/SceneKit/SCNScene/fogStartDistance) property, scene contents are fully visible. At greater distances, SceneKit blends the rendered scene contents with a constant color (specified by the [`fogColor`](/documentation/SceneKit/SCNScene/fogColor) property). At distances greater than the [`fogEndDistance`](/documentation/SceneKit/SCNScene/fogEndDistance) 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.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](/documentation/SceneKit/animating-scenekit-content).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)