DepthTest QML Type

DepthTest type tests the fragment shader's depth value against the depth of a sample being written to. 更多...

导入语句: import Qt3D.Render 2.12
Since: Qt 5.7
实例化: QDepthTest
继承:

RenderState

特性

详细描述

A DepthTest type is used to enable depth testing with a given depth test function. The depth test enables writing fragment color values when the depth test passes, and reject fragments which fail the test. The depth test uses the depth function to test the fragments depth value to the value against z-buffer. If the underlying surface does not have z-buffer, the DepthTest 什么都不做。

另请参阅 AlphaTest and StencilTest .

特性文档编制

depthFunction : enumeration

Holds the current function used by depth test. The default is DepthTest .Never.

另请参阅 Qt3DRender::QDepthTest::DepthFunction .