DepthRange QML Type
允许重新映射写入深度缓冲区的深度值。更多...
| Import Statement: | import Qt3D.Render 2.12 |
| In C++: | QDepthRange |
| Inherits: | |
| Status: | Deprecated |
此类型已弃用。我们强烈建议不要在新代码中使用它。
详细说明
默认情况下,OpenGL 会将场景的深度信息写入深度缓冲区,其范围为 [0.0, 1.0],对应近裁剪平面和远裁剪平面。QDepthRange 允许将这些值映射到另一个范围。 例如,将范围设置为 [0.0, 0.5] 时,渲染后的场景将被映射到深度缓冲区中,使得位于近裁剪平面的物体深度值为 0.0,而位于远裁剪平面的物体深度值为 0.5。这使得场景的某些部分在渲染时始终位于其他部分的前方或后方。
© 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.