URP——后期处理特效——光华Bloom

Bloom

在图片中,光华效应产生了从明亮区域边缘延伸出来的光的边缘。这就产生了一种亮光压倒相机的错觉。

光华特效也有镜头污垢的特性,你可以用它来应用一个全屏的污迹或灰尘层来衍射特效。

Using Bloom

Bloom使用体积系统,所以要启用和修改Bloom属性,你必须在场景中的体积上添加一个Bloom覆盖。

在体积中添加光华:

  1. 在场景或层次视图中,选择一个包含体积组件的游戏对象,在检查器中查看它。
  2. 在检查器中,导航到Add Override > Post-processing,然后点击Bloom。通用渲染管线会应用Bloom到任何受到这个体积影响的相机。

Properties

Bloom

PropertyDescription
Threshold

Set the gamma space brightness value at which URP applies Bloom. URP does not apply Bloom to any pixels in the Scene that have a brightness lower than this value. The minimum value is 0, where nothing is filtered. The default value is 0.9. There is no maximum value.

设置用于URP应用Bloom的伽马空间亮度值。URP不会对场景中亮度低于这个值的任何像素应用Bloom。最小值为0,其中不进行任何过滤。默认值是0.9。没有最大值。

Intensity

Set the strength of the Bloom filter, in a range from 0 to 1. The default is 0, which means that the Bloom effect is disabled.

设置Bloom过滤器的强度,范围从0到1。默认值为0,这意味着Bloom效果被禁用。

Scatter

Set the radius of the bloom effect in a range from 0 to 1. Higher values give a larger radius. The default value is 0.7.

设置绽放效果的半径,范围从0到1。值越大,半径越大。默认值是0.7。

Tint

Use the color picker to select a color for the Bloom effect to tint to.

使用颜色选择器为Bloom效果选择要着色的颜色。

Clamp

Set the maximum intensity that Unity uses to calculate Bloom. If pixels in your Scene are more intense than this, URP renders them at their current intensity, but uses this intensity value for the purposes of Bloom calculations. The default value is 65472.

设置Unity用来计算Bloom的最大强度。如果你的场景中的像素比这个更强烈,URP会以它们当前的强度渲染它们,但是使用这个强度值来进行Bloom计算。默认值是65472。

High Quality Filtering

Enable this to use high quality sampling. This reduces flickering and improves the overall smoothness, but is more resource-intensive and can affect performance.

激活该选项能够使用高质量的抽样。这减少了闪烁并提高了整体的平滑度,但是会消耗更多的资源,并且会影响性能。

Skip Iterations

The last iterations in the processing sequence might have little contribution to the appearance of the rendered frame. In this setting you define the number of final iterations to skip. Increasing this value reduces processing load and increases performance, especially on mobile devices. The default value is 1.

处理序列中的最后迭代可能对渲染帧的外观没有什么贡献。在此设置中,您定义要跳过的最终迭代的数量。增加这个值可以减少处理负载并提高性能,特别是在移动设备上。默认值是1。

Lens Dirt

PropertyDescription
Texture

Assign a Texture to apply the effect of dirt (such as smudges or dust) to the lens.

指定一个纹理来应用污垢(如污迹或灰尘)的效果到镜头上。

Intensity

Set the strength of the Lens Dirt effect.

设置镜头污垢效果的强度。

Troubleshooting performance issues

有多种方法可以提高Bloom的性能影响。按效果排序,你可以:

  1. 禁用High Quality Filtering(高质量的过滤。然后Bloom使用双线性滤波代替双三次滤波。这降低了Bloom效果的整体平滑度,但极大地提高了性能,特别是在低端硬件和平台上。在某些极端情况下,您可能会在场景中看到块状的图形工件。
  2. 使用较低分辨率的镜头污垢纹理,以减少内存压力和加速混合的体积。
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值