DepthTest QML Type
DepthTest 类型用于将片段着色器的深度值与正在写入的采样点的深度进行比较。更多内容...
| Import Statement: | import Qt3D.Render 2.12 |
| In C++: | QDepthTest |
| Inherits: | |
| Status: | Deprecated |
此类型已弃用。我们强烈建议不要在新代码中使用它。
属性
- depthFunction : enumeration
详细说明
DepthTest 类型用于通过给定的深度测试函数启用深度测试。深度测试允许在通过深度测试时写入片段颜色值,并拒绝未通过测试的片段。 深度测试使用深度函数将片段的深度值与 z-缓冲区中的值进行比较。如果底层表面没有 z-缓冲区,则 DepthTest 不执行任何操作。
另请参阅 AlphaTest 和StencilTest 。
属性文档
depthFunction : enumeration
保存深度测试当前使用的函数。默认值为DepthTest 。Never。
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.