In questa pagina

AlphaTest QML Type

La classe AlphaTest definisce il test di riferimento alfa. Maggiori informazioni...

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

RenderState

Status: Deprecated

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

Proprietà

Descrizione dettagliata

Come spiega la documentazione di OpenGL, il test alfa scarta un frammento in base al risultato di un confronto tra il valore alfa del frammento in entrata e un valore di riferimento costante.

Documentazione delle proprietà

alphaFunction : enumeration

Contiene la funzione alfa utilizzata dal test alfa. Il valore predefinito è AlphaTest. .Never.

Vedi anche Qt3DRender::QAlphaTest::AlphaFunction.

referenceValue : real

Contiene il valore di riferimento utilizzato dal test alfa. Il valore predefinito è 0,0. Se specificato, il valore viene limitato tra 0 e 1.

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