Unity3D圣典3.3版本-中文版
文集大纲加载中……
本文档使用 MrDoc 发布
-
+
首页
RenderTextureFormat.Depth 深度
# [RenderTextureFormat](RenderTextureFormat.html).Depth 深度 [RenderTextureFormat.Depth](RenderTextureFormat.Depth.html) *Description* 描述 A depth render texture format. Depth 渲染纹理格式。 Depth format is used to render high precision "depth" value into a render texture. Which format is actually used depends on the platform. On OpenGL it is the native "depth component" format (usually 24 or 16 bits), on Direct3D9 it is the 32 bit floating point ("R32F") format. When writing shaders that use or render into a depth texture, care must be taken to ensure that they work both on OpenGL and on Direct3D, see depth textures documentation. Depth 格式用于高精度"depth"值到一个渲染纹理。实际使用哪种格式取决于平台。在 OpenGL 他是本地"depth component"格式(通常是 24 或 16 位),在 Direct3D9 是 32 位浮点("R32F")格式。当写入着色器,使用或渲染到深度纹理,必须注意,确保它们是工作在 OpenGL 和 Direct3D 平台。 Note that not all graphics cards support depth textures. Use [SystemInfo.SupportsRenderTextureFormat](../SystemInfo/SystemInfo.SupportsRenderTextureFormat.html) to check for support. 请注意,并非所有的图形卡支持的深度纹理。使用 [SystemInfo.SupportsRenderTextureFormat](../SystemInfo/SystemInfo.SupportsRenderTextureFormat.html) 检查是否支持。 参见:[RenderTexture.format](../../RenderTexture/RenderTexture.format.html), [RenderTexture](../../RenderTexture/RenderTexture.html) 类,[SystemInfo.SupportsRenderTextureFormat](../SystemInfo/SystemInfo.SupportsRenderTextureFormat.html)
da
2022年5月20日 18:05
转发文档
收藏文档
上一篇
下一篇
手机扫码
复制链接
手机扫一扫转发分享
复制链接
关于 MrDoc
觅思文档MrDoc
是
州的先生
开发并开源的在线文档系统,其适合作为个人和小型团队的云笔记、文档和知识库管理工具。
如果觅思文档给你或你的团队带来了帮助,欢迎对作者进行一些打赏捐助,这将有力支持作者持续投入精力更新和维护觅思文档,感谢你的捐助!
>>>捐助鸣谢列表
微信
支付宝
QQ
PayPal
Markdown文件
分享
链接
类型
密码
更新密码