Motion Blur
运动模糊效果模拟了真实相机拍摄物体运动速度快于曝光时间时图像中出现的模糊。这通常是由于物体快速移动,或曝光时间过长所致。
通用渲染管道(URP)只模糊摄像机的运动。
Using Motion Blur
运动模糊使用了体积系统,所以要启用和修改运动模糊属性,你必须添加一个运动模糊覆盖到你的场景中的体积。为体积添加运动模糊:
- 在场景或层次视图中,选择一个包含体积组件的游戏对象,在检查器中查看它。
- 在检查器中,导航到Add Override > Post-processing然后点击Motion Blur动态模糊。URP现在应用运动模糊到这个体积影响的任何相机。
Properties
Property | Description |
---|---|
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. 将运动模糊滤镜的强度设置为0到1。较高的值会产生较强的模糊效果,但会导致较低的性能,这取决于箝位参数。 |
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. 设置相机旋转产生的速度的最大长度。这限制了高速模糊,以避免过多的性能成本。这个值是作为屏幕全分辨率的一部分来测量的。值的范围是0到0.2。默认值是0.05。 |
Troubleshooting performance issues
为了减少运动模糊的性能影响,你可以:
- 降低质量。低质量的设置可以提供更高的性能,但可能会显示更多的视觉工件。
- 减小Clamp 以降低Unity所考虑的最大速度。值越低,性能越好。