PolygonOffset QML Type
The PolygonOffset type sets the scale and steps to calculate depth values for polygon offsets. 更多...
Import Statement: | import Qt3D.Render 2.0 |
开始支持版本: | Qt 5.7 |
Instantiates: | QPolygonOffset |
基类: |
属性
- depthSteps : real
- scaleFactor : real
详细描述
A PolygonOffset type adds an offset to the fragment depth value prior to depth test and depth write. The offset can be used to avoid z-fighting when rendering polygons with very close depth values such as decals.
属性
Holds the scale factor used to create a variable depth offset for each polygon. Default value is 0.