The CullFace type specifies whether front or back face culling is enabled. 更多...
import 语句: | import Qt3D.Render 2.0 |
Since: | Qt 5.7 |
实例化: | QCullFace |
继承: | RenderState |
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 } ] }
另请参阅 FrontFace .
Holds the culling mode used by CullFace . Default is set to QCullFace.Back.