struct
DepthOfFieldSettings
Settings that control the depth-of-field effect.
Public
Constructors
DepthOfFieldSettings
Methods
staticGetRttiStatic
Fields
BokehShape
Texture to use for the bokeh shape.
Only relevant when using Bokeh depth of field.
Enabled
Enables or disables the depth of field effect.
FocalDistance
Distance from the camera at which the focal plane is located in.
Objects at this distance will be fully in focus. In world units (meters).
FocalRange
Range within which the objects remain fully in focus.
This range is applied relative to the focal distance. This parameter should usually be non-zero when using the Gaussian depth of field effect. When using other types of depth-of-field you can set this to zero for a more physically-based effect, or keep it non-zero for more artistic control. In world units (meters).
NearTransitionRange
Determines the size of the range within which objects transition from focused to fully unfocused, at the near plane.
Only relevant for Gaussian and Bokeh depth of field. In world units (meters).
FarTransitionRange
Determines the size of the range within which objects transition from focused to fully unfocused, at the far plane.
Only relevant for Gaussian and Bokeh depth of field. In world units (meters).
NearBlurAmount
Determines the amount of blur to apply to fully unfocused objects that are closer to camera than the in-focus zone.
Set to zero to disable near-field blur. Only relevant for Gaussian depth of field.
FarBlurAmount
Determines the amount of blur to apply to fully unfocused objects that are farther away from camera than the in-focus zone.
Set to zero to disable far-field blur. Only relevant for Gaussian depth of field.
MaxBokehSize
Determines the maximum size of the blur kernel, in percent of view size.
Larger values cost more performance. Only relevant when using Bokeh depth of field.
AdaptiveColorThreshold
Determines the maximum color difference between surrounding pixels allowed (as a sum of all channels) before higher fidelity sampling is triggered.
Increasing this value can improve performance as less higher fidelity samples will be required, but may decrease quality of the effect. Only relevant when using Bokeh depth of field.
AdaptiveRadiusThreshold
Determines the minimum circle of confusion size before higher fidelity sampling is triggered.
Small values trigger high fidelity sampling because they can otherwise produce aliasing, and they are small enough so they don't cost much. Increasing this value can improve performance as less higher fidelity samples will be required, but may decrease quality of the effect. Only relevant when using Bokeh depth of field.
ApertureSize
Camera aperture size in mm.
Only relevant when using Bokeh depth of field.
FocalLength
Focal length of the camera's lens (e.g. 75mm).
Only relevant when using Bokeh depth of field.
SensorSize
Camera sensor width and height, in mm.
Used for controlling the size of the circle of confusion. Only relevant when using Bokeh depth of field.
BokehOcclusion
Set to true if Bokeh flare should use soft depth testing to ensure they don't render on top of foreground geometry.
This can help reduce background bleeding into the foreground, which can be especially noticeable if the background is much brighter than the foreground. Use to tweak the effect.
OcclusionDepthRange
Range in world units over which range to fade out Bokeh flare influence.
Influence of the flare will be faded out as the depth difference between the flare's origin pixel and the destination pixel grows larger. Only relevant if is turned on.
Protected
Methods
~TDepthOfFieldSettings<IsRenderProxy>
*********************************************************************