---
title: wantsDepthOfField
framework: scenekit
role: symbol
role_heading: Instance Property
path: scenekit/scncamera/wantsdepthoffield
---

# wantsDepthOfField

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

## Declaration

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

## Discussion

Discussion This value is 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, and the intensity and style of the blur effect depend on the fStop and apertureBladeCount properties. note: For best results, also enable the 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.

## See Also

### Adding Depth-of-Field Effects

- [focusDistance](scenekit/scncamera/focusdistance.md)
- [fStop](scenekit/scncamera/fstop.md)
- [apertureBladeCount](scenekit/scncamera/aperturebladecount.md)
- [focalBlurSampleCount](scenekit/scncamera/focalblursamplecount.md)
