DepthTest QML Type

DepthTest 类型根据正在写入的样本深度测试片段着色器的深度值。更多

Import Statement: import Qt3D.Render 2.9
In C++: QDepthTest
Inherits:

RenderState

Status: Deprecated

属性

详细说明

深度测试(DepthTest)类型用于使用给定的深度测试函数进行深度测试。当深度测试通过时,深度测试会写入片段颜色值,并拒绝未通过测试的片段。深度测试使用深度函数来测试片段深度值与 z 缓冲区的值是否一致。如果底层曲面没有 z 缓冲区,则深度测试不会执行任何操作。

另请参阅 AlphaTestStencilTest

属性文档

depthFunction : enumeration

保存深度测试使用的当前函数。默认为DepthTest.Never。

另请参见 Qt3DRender::QDepthTest::DepthFunction


© 2025 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.