URP——后期处理特效——镜头失真Lens Distortion

Lens Distortion

镜头失真效果失真最终渲染的图片,以模拟一个真实的相机镜头的形状。

Using Lens Distortion

镜头失真使用了体积框架,所以要启用和修改镜头失真属性,你必须在场景的体积中添加一个镜头失真覆盖。添加镜头失真到一个体积:

  1. 在场景或层次视图中,选择一个包含体积组件的游戏对象,在检查器中查看它。
  2. 在检查器中,导航到 Add Override > Post-processing点击Lens Distortion镜头失真。URP现在使用镜头失真于这个体积影响的任何相机。

Properties

PropertyDescription
Intensity

Use the slider to set the overall strength of the distortion effect.

使用滑块设置失真效果的整体强度。

X Multiplier

Use the slider to set the distortion intensity on the x-axis. This value acts as a multiplier so you can set this value to 0 to disable distortion on this axis,

使用滑块在x轴上设置失真强度。这个值作为一个倍增器,所以您可以将这个值设置为0来禁用这个轴上的扭曲

Y Multiplier

Use the slider to set the distortion intensity on the y-axis. This value acts as a multiplier so you can set this value to 0 to disable distortion on this axis,

使用滑块设置y轴上的失真强度。这个值作为一个倍增器,所以您可以将这个值设置为0来禁用这个轴上的扭曲

Center

Set the center point of the distortion effect on the screen.

在屏幕上设置扭曲效果的中心点。

Scale

Use the slider to set the value for global screen scaling. This zooms the render to hide the borders of the screen. When you use a high distortion, pixels on the borders of the screen can break because they rely on information from pixels outside the screen boundaries that don't exist. This property is useful for hiding these broken pixels around the screen border.

使用滑块设置全局屏幕缩放的值。这将放大渲染以隐藏屏幕的边界。当使用高失真时,屏幕边界上的像素可能会被破坏,因为它们依赖于屏幕边界以外不存在的像素的信息。此属性对于隐藏屏幕边框周围的这些破碎像素非常有用。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
以下是制作URP渲染管线下的溶解特效的完整步骤: 1. 创建一个材质球:在Project面板中右键点击空白处,选择Create -> Material,然后将材质球命名为“Dissolve”,并将其Shader设置为“Universal Render Pipeline -> Dissolve”。 2. 创建一个溶解纹理:在Project面板中右键点击空白处,选择Create -> Render Texture,然后将Render Texture命名为“Dissolve Mask”,并设置其分辨率为256x256。在Inspector面板中,将Render Texture的Wrap Mode设置为Clamp,Filter Mode为Point,并将其勾选为“Generate Mip Maps”。 3. 创建一个溶解控制脚本:在Hierarchy面板中选择需要应用溶解特效的物体,然后在Inspector面板中点击“Add Component”,选择New Script并将其命名为“DissolveControl”。在Script Editor中编写控制溶解特效的代码。 4. 编写溶解控制脚本:在DissolveControl脚本中,需要定义溶解特效的一些参数,如溶解速度、溶解纹理、溶解边缘等。然后,在Update函数中,根据需要控制溶解的进度,并将其应用到材质球中。 5. 应用材质球:将Dissolve材质球应用到需要应用溶解特效的物体上。 6. 调整溶解参数:在Inspector面板中,调整材质球中的溶解参数,如溶解纹理、溶解速度、溶解边缘等,以达到预期的效果。 通过以上步骤,就可以在URP渲染管线下制作出溶解特效。需要注意的是,不同场景和需求下,溶解特效的实现方式可能会略有不同,需要根据实际情况进行调整和优化。

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值