# Dof

Interface · category: Other

Source: https://github.com/playcanvas/engine/blob/f059dc005842f76e052cdf44d8370c8c7ec475ac/src/extras/render-passes/camera-frame.js#L203

Properties related to Depth of Field (DOF), a technique used to simulate the optical effect where
objects at certain distances appear sharp while others are blurred, enhancing the perception of
focus and depth in the rendered scene.

## Properties

### blurRadius

```ts
blurRadius: number
```

The radius of the blur effect, typically 2-10 range. Defaults to 3.

### blurRingPoints

```ts
blurRingPoints: number
```

The number of points in each ring of the blur effect, typically
3-8 range. Defaults to 5.

### blurRings

```ts
blurRings: number
```

The number of rings in the blur effect, typically 3-8 range. Defaults
to 4.

### enabled

```ts
enabled: boolean
```

Whether DoF is enabled. Defaults to false.

### focusDistance

```ts
focusDistance: number
```

The distance at which the focus is set. Defaults to 100.

### focusRange

```ts
focusRange: number
```

The range around the focus distance where the focus is sharp.
Defaults to 10.

### highQuality

```ts
highQuality: boolean
```

Whether the high quality implementation is used. This will have
a higher performance cost, but will produce better quality results. Defaults to true.

### nearBlur

```ts
nearBlur: boolean
```

Whether the near blur is enabled. Defaults to false.
