The CullFace type specifies whether front or back face culling is enabled. More...
| Import Statement: | import Qt3D.Render 2.9
|
| In C++: | QCullFace |
| Inherits: | |
| Status: | Deprecated |
CullFace sets whether the front or back facets are culled. Facets include triangles, quadrilaterals, polygons and rectangles.
It can be added to the renderStates property of a RenderPass:
RenderPass {
shaderProgram: ShaderProgram {
// ...
}
renderStates: [
CullFace {
mode: CullFace.Front
}
]
}Or added to the renderStates property of a RenderStateSet:
RenderStateSet {
renderStates: [
CullFace {
mode: CullFace.Front
}
]
}See also FrontFace.
mode : enumeration
Holds the culling mode used by CullFace. Default is set to QCullFace.Back.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.9/qml-qt3d-render-cullface.html