DepthRange QML Type
启用重映射写入深度缓冲区的深度值。更多
Import Statement: | import Qt3D.Render 2.9 |
In C++: | QDepthRange |
Inherits: | |
Status: | Deprecated |
详细说明
默认情况下,OpenGL 会将场景深度信息以 [0.0, 1.0] 的范围写入深度缓冲区,该范围与近剪辑平面和远剪辑平面相对应。QDepthRange 允许将这些值映射到不同的范围。例如,设置范围 [0.0, 0.5] 将把渲染场景映射到深度缓冲区,这样近剪辑平面上的物体深度值为 0.0,远剪辑平面上的物体深度值为 0.5。这样就可以使渲染场景的某些部分总是位于其他部分的前面或后面。
© 2025 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.