effect-motion
API ReferencerendererNamespacesSyncInterfaces

DofState

The depth-of-field request derived from a frame's camera.

Interface: DofState

Defined in: packages/renderer/src/Sync.ts:210

The depth-of-field request derived from a frame's camera.

Remarks

Both render paths read it per frame: when on, the world draws through the depth-aware DoF post chain with these values as its uniforms; otherwise the plain path runs and the chain is never touched.

Properties

aperture

aperture: number;

Defined in: packages/renderer/src/Sync.ts:216

Lens radius, world units; 0 is a pinhole (off).


focusDistance

focusDistance: number;

Defined in: packages/renderer/src/Sync.ts:214

View-space distance to the sharp plane, world units.


on

on: boolean;

Defined in: packages/renderer/src/Sync.ts:212

Whether the camera asked for DoF (aperture and focusDistance both > 0).

On this page