Class DepthOfField
A volume component that holds settings for the Depth Of Field effect.
Inherited Members
Namespace: UnityEngine .Rendering.HighDefinition
Assembly: Unity.RenderPipelines.HighDefinition.Runtime.dll
Syntax
[Serializable]
[VolumeComponentMenu("Post-processing/Depth Of Field")]
[SupportedOnRenderPipeline(typeof(HDRenderPipelineAsset))]
public sealed class DepthOfField : VolumeComponentWithQuality, IApplyRevertPropertyContextMenuItemProvider, IPostProcessComponent
Fields
Name | Description |
---|---|
far |
Sets the distance from the Camera at which the far field blur reaches its maximum blur radius. |
far |
Sets the distance from the Camera at which the far field starts blurring. |
focus |
The distance to the focus plane from the Camera. |
focus |
Specifies where to read the focus distance from. |
focus |
Specifies the mode that HDRP uses to set the focus for the depth of field effect. |
near |
Sets the distance from the Camera at which the near field does not blur anymore. |
near |
Sets the distance from the Camera at which the near field blur begins to decrease in intensity. |
Properties
Name | Description |
---|---|
far |
Sets the maximum radius the far blur can reach. |
far |
Sets the number of samples to use for the far field. |
high |
When enabled, HDRP uses bicubic filtering instead of bilinear filtering for the depth of field effect. |
limit |
Adjust near blur CoC based on depth distance when manual, non-physical mode is used. |
near |
Sets the maximum radius the near blur can reach. |
near |
Sets the number of samples to use for the near field. |
physically |
When enabled, HDRP uses a more accurate but slower physically based method to compute the depth of field effect. |
resolution | Specifies the resolution at which HDRP processes the depth of field effect. |
Methods
Name | Description |
---|---|
Is |
Tells if the effect needs to be rendered or not. |
Is |
Returns the state of the far field blur. This is only relevant when Manual is set. |
Is |
Returns the state of the near field blur. This is only relevant when Manual is set. |