Nesta página

DepthTest QML Type

O tipo DepthTest compara o valor de profundidade do shader de fragmento com a profundidade de uma amostra na qual está sendo gravado. Mais...

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

RenderState

Status: Deprecated

Este tipo está obsoleto. Recomendamos enfaticamente que não seja utilizado em códigos novos.

Propriedades

Descrição detalhada

Um tipo DepthTest é usado para habilitar o teste de profundidade com uma determinada função de teste de profundidade. O teste de profundidade permite gravar os valores de cor dos fragmentos quando o teste é aprovado e rejeitar os fragmentos que não passam no teste. O teste de profundidade utiliza a função de profundidade para comparar o valor de profundidade dos fragmentos com o valor do buffer z. Se a superfície subjacente não possuir buffer z, o DepthTest não realiza nenhuma ação.

Veja também AlphaTest e StencilTest.

Documentação da propriedade

depthFunction : enumeration

Armazena a função atual utilizada pelo teste de profundidade. O valor padrão é ` DepthTest`. `.Never`.

Veja também Qt3DRender::QDepthTest::DepthFunction.

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