Class MotionBlur
A volume component that holds settings for the Motion Blur effect.
Inherited Members
Namespace: UnityEngine.Rendering.HighDefinition
Assembly: Unity.RenderPipelines.HighDefinition.Runtime.dll
Syntax
[Serializable]
[VolumeComponentMenu("Post-processing/Motion Blur")]
[SupportedOnRenderPipeline(typeof(HDRenderPipelineAsset))]
public sealed class MotionBlur : VolumeComponentWithQuality, IApplyRevertPropertyContextMenuItemProvider, IPostProcessComponent
Fields
Name | Description |
---|---|
cameraMotionBlur | If toggled on camera rotation can be clamped differently. |
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. |
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. |
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. |
depthComparisonExtent | Value used for the depth based weighting of samples. Tweak if unwanted leak of background onto foreground or viceversa is detected. |
intensity | Sets the intensity of the motion blur effect. Acts as a multiplier for velocities. |
maximumVelocity | Controls the maximum velocity, in pixels, that HDRP allows for all sources of motion blur except Camera rotation. |
minimumVelocity | Controls the minimum velocity, in pixels, that a GameObject must have to contribute to the motion blur effect. |
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). |
Properties
Name | Description |
---|---|
sampleCount | Sets the maximum number of sample points that HDRP uses to compute motion blur. |
Methods
Name | Description |
---|---|
IsActive() | Tells if the effect needs to be rendered or not. |