TurnBasedStrategyCourse/Library/PackageCache/com.unity.render-pipelines..../Documentation~/Post-Processing-Motion-Blur.md

36 lines
2.7 KiB
Markdown

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# Motion Blur
![Motion Blur off](Images/post-proc/motion-blur-off.png)
<br/>*Scene with Motion Blur effect turned off.*
![Motion Blur on](Images/post-proc/motion-blur.png)
<br/>*Scene with Motion Blur effect turned on.*
The Motion Blur effect simulates the blur that occurs in an image when a real-world camera films objects moving faster than the cameras exposure time. This is usually due to rapidly moving objects, or a long exposure time.
Universal Render Pipeline (URP) only blurs camera motions.
## Using Motion Blur
**Motion Blur** uses the [Volume](Volumes.md) system, so to enable and modify **Motion Blur** properties, you must add a **Motion Blur** override to a [Volume](Volumes.md) in your scene. To add **Motion Blur** to a Volume:
1. In the Scene or Hierarchy view, select a GameObject that contains a Volume component to view it in the Inspector.
2. In the Inspector, navigate to **Add Override > Post-processing**, and click on **Motion Blur**. URP now applies **Motion Blur** to any Camera this Volume affects.
## Properties
| **Property** | **Description** |
| ------------- | ------------------------------------------------------------ |
| **Mode** | Select the motion blur technique.<br/>Options:<ul><li>**Camera Only**: use only the motion of the camera to blur the objects. This technique does not use the motion vectors. This technique has better performance than **Camera and Objects**.</li><li>**Camera and Objects**: use the motion of both the camera and the GameObjects. GameObject motion vectors overwrite the camera motion vectors.</li></ul> |
| **Quality** | Set the quality of the effect. Lower presets give better performance, but at a lower visual quality. |
| **Intensity** | Set the strength of the motion blur filter to a value from 0 to 1. Higher values give a stronger blur effect, but can cause lower performance, depending on the **Clamp** parameter. |
| **Clamp** | Set the maximum length that the velocity resulting from Camera rotation can have. This limits the blur at high velocity, to avoid excessive performance costs. The value is measured as a fraction of the screen's full resolution. The value range is 0 to 0.2. The default value is 0.05. |
## Troubleshooting performance issues
To decrease the performance impact of Motion Blur, you can:
* Reduce the **Quality**. A lower quality setting gives higher performance but may exhibit more visual artifacts.
* Change the **Mode** property from **Camera and Objects** to **Camera Only**. This technique has better performance than **Camera and Objects**.
* Decrease the **Clamp** to reduce the maximum velocity that Unity takes into account. Lower values give higher performance.