Panini Projection
这个效果可以帮助你在一个非常大的场景中渲染透视视图。Panini投影是一个圆柱形投影,这意味着它保持垂直的直线笔直和垂直。与其他圆柱形投影不同,Panini投影使穿过图像中心的放射线也保持直线。
有关panini投影的更多信息,请参阅PanoTools的wiki文档,其中介绍了General Panini Projection。
Using Panini Projection
Panini投影使用体积框架,因此要启用和修改Panini投影属性,必须向场景中的体积添加一个Panini投影覆盖。将Panini投影添加到体积:
- 在场景或层次视图中,选择一个包含体积组件的游戏对象,在检查器中查看它。
- 在检查器中,导航到Add Override > Post-processing 点击Panini Projection。URP现在应用Panini 投影到这个体积影响的任何相机。
Properties
Property | Description |
---|---|
Distance | Use the slider to set the strength of the distortion. 使用滑块设置失真的强度。 |
Crop to Fit | Use the slider to crop the distortion to fit the screen. A value of 1 crops the distortion to the edge of the screen, but results in a loss of precision in the center if you set Distance to a high value. 使用滑块裁剪失真以适应屏幕。值为1会使屏幕边缘失真,但如果设置距离值较高,则会导致中心的精度损失。 |