effect-motion
API ReferencerendererNamespacesRendererFunctions

makeDofNode

function makeDofNode(sync, quality?): DepthAwareDofNode;

Function: makeDofNode()

function makeDofNode(sync, quality?): DepthAwareDofNode;

Defined in: packages/renderer/src/Renderer.ts:183

The depth-aware DoF node over a sync's world scene.

Parameters

ParameterTypeDefault value
syncSyncundefined
qualityDofQuality"full"

Returns

DepthAwareDofNode

Remarks

Internal, shared by both render paths. Built once per renderer, the first time a frame asks for DoF; setDofUniforms feeds it each frame.

maxBlurPx is the node default (30 render px) here; the browser path rescales it per frame with the pixel ratio (see renderWorldWithDof). Node export keeps 30 render px.

On this page