En esta página

AlphaCoverage QML Type

Activar el modo de multimuestreo «alpha-to-coverage». Más información...

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

RenderState

Status: Deprecated

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

Descripción detallada

Un tipo AlphaCoverage habilita el modo de multimuestreo de alfa a cobertura. Cuando está habilitado, el valor alfa del fragmento se utiliza como cobertura para la muestra y se combina con el valor de cobertura del fragmento. AlphaCoverage no realiza ninguna acción si el multimuestreo está desactivado. El «alfa a cobertura» resulta especialmente útil cuando se requiere una mezcla independiente del orden, por ejemplo, al renderizar hojas, hierba y otra vegetación densa.

Se puede añadir a un ` RenderPass`:

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

O a un « RenderStateSet »:

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