PolygonOffset QML Type
PolygonOffset 类型设置了计算多边形偏移深度值的比例和步长。更多
Import Statement: | import Qt3D.Render 2.9 |
In C++: | QPolygonOffset |
Inherits: | |
Status: | Deprecated |
属性
- depthSteps : real
- scaleFactor : real
详细说明
PolygonOffset 类型会在深度测试和深度写入之前为片段深度值添加一个偏移量。在渲染深度值非常接近的多边形(如贴花)时,偏移量可用于避免z-fighting。
属性文档
depthSteps : real |
保存创建恒定深度偏移的单位。默认值为 0。
scaleFactor : real |
保存用于为每个多边形创建可变深度偏移的比例因子。默认值为 0。
© 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.