Unity 相机 相机的输出参数
2021-04-21 本文已影响0人
暴走TA
简介:HDRP 中的相机对其参数进行了分类,分为 通用,物理,输出,我们介绍 输出 属性参数
版本:Unity2019.4.12f1 HDRP 7.5.1
准备
- 为了方便观察,我们删除多余的相机,只保留一个相机
相机的输出参数介绍
- 相机的输出类参数主要用来控制相机的输出目标,大小,输出顺序

- TargetDisplay:输出目标设备
Unity 的 Game 窗口是可以同时存在多个的,而且可以在窗口的左上角设置其显示标记,相机总共提供了8个displaytarget


- TargetTexure:目标纹理,相机的渲染结果直接输出到一张纹理图上,这里的纹理图不是随便的贴图都可以,是在工程创建的 Unity 的 RenderTexture 类型,正确指认 TargetTexture 后,game 显示本相机的渲染结果



- Depth :相机渲染优先级,值越小越先渲染,这主要针对使用多个相机的情况
- ViewportRect:实际渲染像素百分比,XY 代表左下角的初始位置,WH代表长宽的比例
