AlphaCoverage QML Type
启用阿尔法-覆盖多重采样模式。更多
Import Statement: | import Qt3D.Render 2.9 |
In C++: | QAlphaCoverage |
Inherits: | |
Status: | Deprecated |
详细说明
AlphaCoverage 类型可启用阿尔法-覆盖多重采样模式。启用后,片段阿尔法值将被用作样本的覆盖值,并与片段覆盖值相结合。如果多重采样被禁用,AlphaCoverage 则不起任何作用。当需要与顺序无关的混合时,例如渲染树叶、草和其他丰富的植被时,Alpha-to-coverage 最有用。
它可以添加到RenderPass :
RenderPass { shaderProgram: ShaderProgram { // ... } renderStates: [ AlphaCoverage {}, MultiSampleAntiAliasing {} ] }
RenderStateSet { renderStates: [ AlphaCoverage {}, MultiSampleAntiAliasing {} ] }
另请参阅 MultiSampleAntiAliasing 。
© 2025 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.