Qt3DRender::QDepthRange Class
class Qt3DRender::QDepthRangePermite remapear los valores de profundidad escritos en el búfer de profundidad. Más...
| Cabecera: | #include <QDepthRange> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender)target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake: | QT += 3drender |
| En QML: | DepthRange |
| Hereda: | Qt3DRender::QRenderState |
| Status: | Obsoleto |
Propiedades
Funciones públicas
Ranuras públicas
| void | setFarValue(double value) |
| void | setNearValue(double value) |
Señales
| void | farValueChanged(double farValue) |
| void | nearValueChanged(double nearValue) |
Descripción detallada
Por defecto, OpenGL escribe la información de profundidad de la escena en el buffer de profundidad en el rango [0.0, 1.0] con 0.0 correspondiendo al plano de clip cercano y 1.0 al plano de clip lejano. QDepthRange permite mapear estos valores en un rango diferente para que partes de la escena se rendericen siempre delante o detrás de otras partes. Los valores válidos para near y far están entre 0 y 1.
Documentación de Propiedades
farValue : double
El valor del búfer de profundidad correspondiente al plano de recorte lejano. Los valores válidos están comprendidos entre 0 y 1.
Funciones de acceso:
| double | farValue() const |
| void | setFarValue(double value) |
Señal notificadora:
| void | farValueChanged(double farValue) |
nearValue : double
El valor del búfer de profundidad correspondiente al plano de recorte cercano. Los valores válidos están comprendidos entre 0 y 1.
Funciones de acceso:
| double | nearValue() const |
| void | setNearValue(double value) |
Señal notificadora:
| void | nearValueChanged(double nearValue) |
© 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.