Nesta página

AlphaCoverage QML Type

Ativar o modo de multisampling alfa-para-cobertura. Mais...

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

RenderState

Status: Deprecated

Esse tipo está obsoleto. Recomendamos enfaticamente que não seja usado em código novo.

Descrição detalhada

Um tipo AlphaCoverage habilita o modo de multisampling alfa-para-cobertura. Quando habilitado, o valor alfa do fragmento é usado como cobertura para a amostra e combinado com o valor de cobertura do fragmento. O AlphaCoverage não realiza nenhuma ação se a amostragem múltipla estiver desativada. A conversão de alfa em cobertura é mais útil quando é necessária uma mistura independente de ordem, por exemplo, ao renderizar folhas, grama e outra vegetação densa.

Ele pode ser adicionado a um ` RenderPass`:

RenderPass {
    shaderProgram: ShaderProgram {
        // ...
    }
    renderStates: [
        AlphaCoverage {},
        MultiSampleAntiAliasing {}
    ]
}

Ou a um ` RenderStateSet`:

Veja também MultiSampleAntiAliasing.

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