AlphaTest QML Type
AlphaTest 类用于指定 alpha 参考测试。更多内容...
| Import Statement: | import Qt3D.Render 2.12 |
| In C++: | QAlphaTest |
| Inherits: | |
| Status: | Deprecated |
此类型已弃用。我们强烈建议不要在新代码中使用它。
属性
- alphaFunction : enumeration
- referenceValue : real
详细说明
正如 OpenGL 文档所解释的那样:Alpha 测试会根据传入片段的 Alpha 值与一个常量参考值之间的比较结果,来决定是否丢弃该片段。
属性文档
alphaFunction : enumeration
存储α测试所使用的α函数。默认值为AlphaTest 。Never。
- AlphaTest.Never
- AlphaTest.始终
- AlphaTest.Less
- AlphaTest.小于或等于
- AlphaTest.等于
- AlphaTest.大于或等于
- AlphaTest.大于
- AlphaTest.不等于
另请参阅 Qt3DRender::QAlphaTest::AlphaFunction 。
referenceValue : real
存储α测试所使用的参考值。默认值为0.0。设置此值后,该值会被限制在0到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.