本页内容

PolygonOffset QML Type

PolygonOffset 类型用于设置比例和步长,以计算多边形偏移的深度值。更多内容...

Import Statement: import Qt3D.Render 2.12
In C++: QPolygonOffset
Inherits:

RenderState

Status: Deprecated

此类型已弃用。我们强烈建议不要在新代码中使用它。

属性

详细说明

PolygonOffset 类型会在深度测试和深度写入之前,对片段深度值添加一个偏移量。当渲染深度值非常接近的多边形(如贴花)时,该偏移量可用于避免 Z 冲突。

属性文档

depthSteps : real

用于存储生成固定深度偏移量的单位。默认值为 0。

scaleFactor : real

存储用于为每个多边形生成可变深度偏移量的缩放因子。默认值为 0。

© 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.