En esta página

DepthTest QML Type

El tipo `DepthTest` compara el valor de profundidad del sombreador de fragmentos con la profundidad de una muestra en la que se está escribiendo. Más información...

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

RenderState

Status: Deprecated

Este tipo está obsoleto. Recomendamos encarecidamente no utilizarlo en código nuevo.

Propiedades

Descripción detallada

El tipo DepthTest se utiliza para habilitar la prueba de profundidad con una función de prueba de profundidad determinada. La prueba de profundidad permite escribir los valores de color de los fragmentos cuando la prueba de profundidad se supera, y rechaza los fragmentos que no superan la prueba. La prueba de profundidad utiliza la función de profundidad para comparar el valor de profundidad de los fragmentos con el valor del búfer Z. Si la superficie subyacente no dispone de búfer Z, DepthTest no realiza ninguna acción.

Véase también AlphaTest y StencilTest.

Documentación de propiedades

depthFunction : enumeration

Almacena la función actual utilizada por la prueba de profundidad. El valor por defecto es « DepthTest.Never».

Véase también 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.