QPolygonOffset Class
class Qt3DRender::QPolygonOffsetThe QPolygonOffset class sets the scale and steps to calculate depth values for polygon offsets. More...
Header: | #include <QPolygonOffset> |
qmake: | QT += 3drender |
Since: | Qt 5.7 |
Instantiated By: | PolygonOffset |
Inherits: | Qt3DRender::QRenderState |
This class was introduced in Qt 5.7.
Public Functions
QPolygonOffset(Qt3DCore::QNode *parent = nullptr) |
Detailed Description
A QPolygonOffset class 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.
Member Function Documentation
QPolygonOffset::QPolygonOffset(Qt3DCore::QNode *parent = nullptr)
The constructor creates a new QPolygonOffset::QPolygonOffset instance with the specified parent