# Sandbox.DepthOfField

Applies a depth of field effect to the camera

- Kind: class
- Namespace: `Sandbox`
- Assembly: `Sandbox.Engine`
- Inherits: [Sandbox.BasePostProcess<T>](/api/Sandbox.BasePostProcess<T>)
- Modifiers: sealed

## Constructors

- [`DepthOfField`](/api/Sandbox.DepthOfField/.ctor)

## Properties

- [`BackBlur`](/api/Sandbox.DepthOfField/BackBlur): Should we blur what's behind the focal point?
- [`BlurSize`](/api/Sandbox.DepthOfField/BlurSize): How blurry to make stuff that isn't in focus, the maximum blur radius in pixels.
- [`DebugView`](/api/Sandbox.DepthOfField/DebugView): Visualize the circle of confusion in black and white instead of the composite.
- [`FocalDistance`](/api/Sandbox.DepthOfField/FocalDistance): How far away from the camera to focus in world units.
- [`FocusRange`](/api/Sandbox.DepthOfField/FocusRange): How far from the [Sandbox.DepthOfField.FocalDistance](/api/Sandbox.DepthOfField/FocalDistance) something has to be, in world units, before it's fully out of focus. Larger values give a softer, more gradual falloff. Defaults to the camera far plane.
- [`FrontBlur`](/api/Sandbox.DepthOfField/FrontBlur): Should we blur what's ahead of the focal point towards us?

## Methods

- [`Render`](/api/Sandbox.DepthOfField/Render)
