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

DepthRange QML Type

Enables remapping depth values written into the depth buffer.

This type was introduced in Qt 5.14.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

DepthRange QML Type

  • Import Statement: import Qt3D.Render 2.4

  • Since:: Qt 5.14

  • Inherits:: RenderState

  • Instantiates:: QDepthRange

  • Group: DepthRange is part of renderstates

Detailed Description

By default, OpenGL writes scene depth information into the depth buffer in the range [0.0, 1.0] corresponding to the near and far clip planes. QDepthRange allows mapping these values into a different range. For example setting the range [0.0, 0.5] will map the rendered scene into the depth buffer such that objects at the near clip plane have depth value of 0.0 and objects at the far clip plane have a depth value of 0.5. This allows rendering parts of the scene always in front of or behind other parts.

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