CullFace QML Type
CullFace 类型用于指定是否启用前表面或后表面剔除。更多内容...
| Import Statement: | import Qt3D.Render 2.12 |
| In C++: | QCullFace |
| Inherits: | |
| Status: | Deprecated |
此类型已弃用。我们强烈建议不要在新代码中使用它。
属性
- mode : enumeration
详细说明
CullFace 用于设置是剔除前向面还是后向面。面包括三角形、四边形、多边形和矩形。
可将其添加到RenderPass 的renderStates属性中:
RenderPass {
shaderProgram: ShaderProgram {
// ...
}
renderStates: [
CullFace {
mode: CullFace.Front
}
]
}或者添加到 `RenderStateSet` 的 `renderStates` 属性中:
RenderStateSet {
renderStates: [
CullFace {
mode: CullFace.Front
}
]
}另请参阅 FrontFace 。
属性文档
mode : enumeration
存储CullFace 所使用的剔除模式。默认设置为QCullFace.Back。
© 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.