Nesta página

AlphaTest QML Type

A classe AlphaTest define o teste de referência alfa. Mais...

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

RenderState

Status: Deprecated

Esse tipo está obsoleto. Recomendamos enfaticamente que você não o utilize em código novo.

Propriedades

Descrição detalhada

Conforme explica a documentação do OpenGL: o teste alfa descarta um fragmento com base no resultado de uma comparação entre o valor alfa do fragmento recebido e um valor de referência constante.

Documentação da propriedade

alphaFunction : enumeration

Armazena a função alfa utilizada pelo teste alfa. O valor padrão é ` AlphaTest`. .Never.

Veja também Qt3DRender::QAlphaTest::AlphaFunction.

referenceValue : real

Armazena o valor de referência utilizado pelo teste alfa. O valor padrão é 0,0. Quando definido, o valor é limitado entre 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.