← Back to vivid-3d

DepthOfField3D

GPU Gpu

Applies depth-of-field blur to a rendered 3D scene.

DepthOfField3D uses the scene depth buffer to blur out-of-focus regions, giving the 3D render a stronger sense of lensing and depth.

Parameters

NameTypeDescription
focus_distancefloatDistance that stays in focus.
aperturefloatStrength of the blur around the focus plane.
max_blurfloatMaximum blur radius.
near_planefloatNear clip used when decoding depth.
far_planefloatFar clip used when decoding depth.

Ports

NameDirectionType
colorInputTEXTURE
depthInputTEXTURE
textureOutputTEXTURE