<!--
{
  "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/SCNCamera/wantsDepthOfField",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "SceneKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SCNCamera(py)wantsDepthOfField"
  },
  "title" : "wantsDepthOfField"
}
-->

# wantsDepthOfField

A Boolean value that determines whether SceneKit renders depth-of-field blur effects for the camera.

```
var wantsDepthOfField: Bool { get set }
```

## Discussion

This value is <doc://com.apple.documentation/documentation/Swift/false> by default, disabling depth-of-field effects.

Enabling this property causes SceneKit to render blur effects that model those created by a physical camera device (also known as *bokeh*). That is, objects in the scene appear more or less blurry depending on their distance from the camera and the camera’s [`focusDistance`](/documentation/SceneKit/SCNCamera/focusDistance), and the intensity and style of the blur effect depend on the [`fStop`](/documentation/SceneKit/SCNCamera/fStop) and [`apertureBladeCount`](/documentation/SceneKit/SCNCamera/apertureBladeCount) properties.

> Note:
> For best results, also enable the ``doc://com.apple.scenekit/documentation/SceneKit/SCNCamera/wantsHDR`` property when using depth-of-field effects. High Dynamic Range rendering provides high contrast for distant bright points in the scene, creating more pronounced bokeh effects.

---

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)