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

PolygonOffset QML Type

The PolygonOffset type sets the scale and steps to calculate depth values for polygon offsets.

This type was introduced in Qt 5.7.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

PolygonOffset QML Type

  • Import Statement: import Qt3D.Render 2.4

  • Since:: Qt 5.7

  • Inherits:: RenderState

  • Instantiates:: QPolygonOffset

  • Group: PolygonOffset is part of renderstates

Detailed Description

A PolygonOffset type adds an offset to the fragment depth value prior to depth test and depth write. The offset can be used to avoid z-fighting when rendering polygons with very close depth values such as decals.

Property Documentation

 

depthSteps : real

Holds the units that create constant depth offsets. Default value is 0.

scaleFactor : real

Holds the scale factor used to create a variable depth offset for each polygon. Default value is 0.

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