DofDisplayFilter
Overview
The DofCorrectDisplayFilter applies a 2D Depth of Field blur on an image buffer.



Attribute Reference
Advanced attributes
invert_mask
Bool
default: False
Invert the value of the mask
mix
Float
default: 1.0
Blend [0,1] between input and output
General attributes
aperture
Float
default: 8.0
Aperture in millimeters



depth
RenderOutput
default: None
The 'depth' RenderOutput to sample z-depth values from

focal_length
Float
default: 30.0
Focal length in millimeters



focus_distance
Float
default: 0.0
Focus distance



input
RenderOutput
default: None
RenderOutput to which to apply depth of field
mask
RenderOutput
default: None
RenderOutput used to mask the output, revealing input1
use_camera_attributes
Bool
default: True
Read dof attributes from the active scene camera
Examples
local beauty = RenderOutput("/output/beauty") {
["file_name"] = "result_tmp.exr",
["result"] = "beauty",
}
local depth = RenderOutput("/output/depth") {
["file_name"] = "result_tmp.exr",
["result"] = "depth",
["math_filter"] = "min",
}
local dofFilter = DofDisplayFilter("/Filter/dof") {
["input"] = beauty,
["depth"] = depth,
}
RenderOutput("/Output/dof") {
["file_name"] = "result0.exr",
["result"] = "display filter",
["display_filter"] = dofFilter,
["channel_name"] = "dof"
}