DepthTextureMode.DepthNormals 深度法线

DepthTextureMode.DepthNormals

Description描述

Generate a depth + normals texture.

生成一个深度+法线纹理。

Will generate a screen-space depth and view space normals texture as seen from this camera. Texture will be in RenderTextureFormat.ARGB32 format and will be set as _CameraDepthNormalsTexture global shader property. Depth and normals will be specially encoded, see Camera Depth Texture page for details.

将生成一个从这个相机可以看到的基于屏幕坐标的深度纹理和基于视图坐标的法线纹理。纹理将是在RenderTextureFormat.ARGB32格式,并设置为_CameraDepthNormalsTexture全局着色器属性。深度和法线将特别编码。

参见:Camera.depthTextureMode.

最后修改:2011年5月8日 Sunday 14:38

本脚本参考基于Unity 3.4.1f5

英文部分版权属©Unity公司所有,中文部分© Unity圣典 版权所有,未经许可,严禁转载 。