QDepthRange Classclass Qt3DRender::QDepthRange
Enables remapping depth values written into the depth buffer. More...
|CMake:|| find_package(Qt6 REQUIRED COMPONENTS 3drender) |
target_link_libraries(mytarget PRIVATE Qt6::3drender)
|qmake:||QT += 3drender|
By default, OpenGL writes scene depth information into the depth buffer in the range [0.0, 1.0] with 0.0 corresponding to the near clip plane and 1.0 to the far clip plane. QDepthRange allows mapping these values into a different range so parts of the scene are always rendered in front of or behind other parts. Valid values for near and far are between 0 and 1.
farValue : double
The depth buffer value corresponding to the far clip plane. Valid values for are between 0 and 1.
nearValue : double
The depth buffer value corresponding to the near clip plane. Valid values for are between 0 and 1.
© 2023 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.