In questa pagina

DepthTest QML Type

Il tipo DepthTest confronta il valore di profondità dello shader dei frammenti con la profondità di un campione su cui si sta scrivendo. Per saperne di più...

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

RenderState

Status: Deprecated

Questo tipo è deprecato. Si sconsiglia vivamente di utilizzarlo nel nuovo codice.

Proprietà

Descrizione dettagliata

Un tipo DepthTest viene utilizzato per abilitare il test di profondità con una determinata funzione di test di profondità. Il test di profondità consente di scrivere i valori di colore dei frammenti quando il test di profondità viene superato e di scartare i frammenti che non superano il test. Il test di profondità utilizza la funzione di profondità per confrontare il valore di profondità dei frammenti con quello del buffer z. Se la superficie sottostante non dispone di un buffer z, il DepthTest non esegue alcuna operazione.

Vedi anche AlphaTest e StencilTest.

Documentazione delle proprietà

depthFunction : enumeration

Contiene la funzione attualmente utilizzata dal test di profondità. Il valore predefinito è DepthTest. Never.

Vedi anche 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.