Const
Intelligent Dynamic Depth of Field.
Automatically manages focus distance by tracking a target object or mesh. Features smooth focus pulling and high-quality bokeh simulation.
const targetRef = useRef<THREE.Mesh>(null);<DynamicDOF target={targetRef} focalLength={75} bokehScale={4}/> Copy
const targetRef = useRef<THREE.Mesh>(null);<DynamicDOF target={targetRef} focalLength={75} bokehScale={4}/>
Intelligent Dynamic Depth of Field.
Automatically manages focus distance by tracking a target object or mesh. Features smooth focus pulling and high-quality bokeh simulation.