IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

CullFace QML Type

The CullFace type specifies whether front or back face culling is enabled.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

CullFace QML Type▲

  • Import Statement: import Qt3D.Render 2.5

  • Inherits: RenderState

  • Instantiates:: QCullFace

  • Group: CullFace is part of renderstates

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:

 
Sélectionnez
RenderPass {
    shaderProgram: ShaderProgram {
        // ...
    }
    renderStates: [
        CullFace {
            mode: CullFace.Front
        }
    ]
}

Or added to the renderStates property of a RenderStateSet:

 
Sélectionnez
RenderStateSet {
    renderStates: [
        CullFace {
            mode: CullFace.Front
        }
    ]
}

See Also▲

See also FrontFace

Property Documentation▲

 

mode : enumeration▲

Holds the culling mode used by CullFace. Default is set to QCullFace.Back.

  • CullFace.NoCulling - culling is disabled

  • CullFace.Front - culling is enabled for front facing polygons

  • CullFace.Back - culling is enabled for back facing polygons

  • CullFace.FrontAndBack - culling is enabled for all polygons, but points and lines are drawn

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+