Class MotionBlur
A volume component that holds settings for the Motion Blur effect.
Inherited Members
Namespace: UnityEngine.Rendering.HighDefinition
Syntax
[Serializable]
[VolumeComponentMenuForRenderPipeline("Post-processing/Motion Blur", new Type[]{typeof(HDRenderPipeline)})]
public sealed class MotionBlur : VolumeComponentWithQuality, IPostProcessComponent
Fields
cameraMotionBlur
If toggled on camera rotation can be clamped differently.
Declaration
[Header("Camera Velocity")]
[AdditionalProperty]
[Tooltip("If toggled off, the motion caused by the camera is not considered when doing motion blur.")]
public BoolParameter cameraMotionBlur
Field Value
Type | Description |
---|---|
UnityEngine.Rendering.BoolParameter |
cameraRotationVelocityClamp
Sets the maximum length, as a fraction of the screen's full resolution, that the motion vectors resulting from Camera rotation can have. Only valid if specialCameraClampMode is set to CameraClampMode.Rotation or CameraClampMode.SeparateTranslationAndRotation.
Declaration
[AdditionalProperty]
[Tooltip("Sets the maximum length, as a fraction of the screen's full resolution, that the motion vectors resulting from Camera rotation can have.")]
public ClampedFloatParameter cameraRotationVelocityClamp
Field Value
Type | Description |
---|---|
UnityEngine.Rendering.ClampedFloatParameter |
cameraTranslationVelocityClamp
Sets the maximum length, as a fraction of the screen's full resolution, that the motion vectors resulting from Camera can have. Only valid if specialCameraClampMode is set to CameraClampMode.Translation or CameraClampMode.SeparateTranslationAndRotation.
Declaration
[AdditionalProperty]
[Tooltip("Sets the maximum length, as a fraction of the screen's full resolution, that the motion vectors resulting from Camera can have.")]
public ClampedFloatParameter cameraTranslationVelocityClamp
Field Value
Type | Description |
---|---|
UnityEngine.Rendering.ClampedFloatParameter |
cameraVelocityClamp
Sets the maximum length, as a fraction of the screen's full resolution, that the motion vectors resulting from Camera movement can have. Only valid if specialCameraClampMode is set to CameraClampMode.FullCameraMotionVector.
Declaration
[AdditionalProperty]
[Tooltip("Sets the maximum length, as a fraction of the screen's full resolution, that the motion vectors resulting from Camera can have.")]
public ClampedFloatParameter cameraVelocityClamp
Field Value
Type | Description |
---|---|
UnityEngine.Rendering.ClampedFloatParameter |
depthComparisonExtent
Value used for the depth based weighting of samples. Tweak if unwanted leak of background onto foreground or viceversa is detected.
Declaration
[AdditionalProperty]
[Tooltip("Value used for the depth based weighting of samples. Tweak if unwanted leak of background onto foreground or viceversa is detected.")]
public ClampedFloatParameter depthComparisonExtent
Field Value
Type | Description |
---|---|
UnityEngine.Rendering.ClampedFloatParameter |
intensity
Sets the intensity of the motion blur effect. Acts as a multiplier for velocities.
Declaration
[Tooltip("Sets the intensity of the motion blur effect. Acts as a multiplier for velocities.")]
public MinFloatParameter intensity
Field Value
Type | Description |
---|---|
UnityEngine.Rendering.MinFloatParameter |
maximumVelocity
Controls the maximum velocity, in pixels, that HDRP allows for all sources of motion blur except Camera rotation.
Declaration
[Tooltip("Controls the maximum velocity, in pixels, that HDRP allows for all sources of motion blur except Camera rotation.")]
public ClampedFloatParameter maximumVelocity
Field Value
Type | Description |
---|---|
UnityEngine.Rendering.ClampedFloatParameter |
minimumVelocity
Controls the minimum velocity, in pixels, that a GameObject must have to contribute to the motion blur effect.
Declaration
[Tooltip("Controls the minimum velocity, in pixels, that a GameObject must have to contribute to the motion blur effect.")]
public ClampedFloatParameter minimumVelocity
Field Value
Type | Description |
---|---|
UnityEngine.Rendering.ClampedFloatParameter |
specialCameraClampMode
Determine how the component of the motion vectors coming from the camera is clamped. It is important to remember that clamping the camera component separately, velocities relative to camera might change too (e.g. an object parented to a camera when the camera moves might not have a 0 motion vector anymore).
Declaration
[AdditionalProperty]
[Tooltip("Determine if and how the component of the motion vectors coming from the camera is clamped in a special fashion.")]
public CameraClampModeParameter specialCameraClampMode
Field Value
Type | Description |
---|---|
CameraClampModeParameter |
Properties
sampleCount
Sets the maximum number of sample points that HDRP uses to compute motion blur.
Declaration
public int sampleCount { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
IsActive()
Tells if the effect needs to be rendered or not.
Declaration
public bool IsActive()
Returns
Type | Description |
---|---|
Boolean |
|