Nesta página

DepthRange QML Type

Permite remapear os valores de profundidade gravados no buffer de profundidade. Mais...

Import Statement: import Qt3D.Render 2.12
In C++: QDepthRange
Inherits:

RenderState

Status: Deprecated

Esse tipo está obsoleto. Recomendamos fortemente que não seja usado em código novo.

Descrição detalhada

Por padrão, o OpenGL grava as informações de profundidade da cena no buffer de profundidade no intervalo [0,0; 1,0], correspondente aos planos de recorte próximo e distante. O QDepthRange permite mapear esses valores para um intervalo diferente. Por exemplo, definir o intervalo [0,0; 0,5] mapeará a cena renderizada no buffer de profundidade de forma que os objetos no plano de recorte próximo tenham valor de profundidade 0,0 e os objetos no plano de recorte distante tenham valor de profundidade 0,5. Isso permite renderizar partes da cena sempre à frente ou atrás de outras partes.

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.