CullFace QML Type
The CullFace type specifies whether front or back face culling is enabled. \since
5.7 \inqmlmodule
Qt3D.Render \inherits
RenderState \ingroup
renderstates. More...
Instantiates: | QCullFace |
Properties
- mode : enumeration
Detailed Description
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.
Property Documentation
mode : enumeration |
Holds the culling mode used by CullFace. Default is set to QCullFace.Back.