@modoki/engine / index / DepthOfFieldPostFX
Variable: DepthOfFieldPostFX
constDepthOfFieldPostFX:Trait<{bokehScale:number;enabled:boolean;focalLength:number;focusDistance:number; }>
DepthOfFieldPostFX — camera-focus blur config (singleton per scene). When enabled, Scene3D adds a DOF stage to the post-FX stack (post-process- stack-plan.md Phase 2). Composes with bloom/vignette (and, once Phase 3 lands, NPR). Values are live uniforms — changes update in place without rebuilding the node graph.
⚠️ On an orthographic camera the stack reconstructs view-space depth with orthographicDepthToViewZ instead of three's default perspective-only PassNode.getViewZNode() — see postfx/dofViewZ.ts.