内容表

上一话题

Qt3DRender.QPointSize

下一话题

Qt3DRender.QProximityFilter

Qt3DRender.QPolygonOffset

QPolygonOffset class sets the scale and steps to calculate depth values for polygon offsets. 更多

Inheritance diagram of PySide2.Qt3DRender.Qt3DRender.QPolygonOffset

概要

信号

详细描述

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.

class PySide2.Qt3DRender.Qt3DRender. QPolygonOffset ( [ parent=None ] )
param parent

QNode

The constructor creates a new QPolygonOffset instance with the specified parent

PySide2.Qt3DRender.Qt3DRender.QPolygonOffset. depthSteps ( )
返回类型

float

另请参阅

setDepthSteps()

PySide2.Qt3DRender.Qt3DRender.QPolygonOffset. depthStepsChanged ( depthSteps )
参数

depthSteps float

PySide2.Qt3DRender.Qt3DRender.QPolygonOffset. scaleFactor ( )
返回类型

float

另请参阅

setScaleFactor()

PySide2.Qt3DRender.Qt3DRender.QPolygonOffset. scaleFactorChanged ( scaleFactor )
参数

scaleFactor float

PySide2.Qt3DRender.Qt3DRender.QPolygonOffset. setDepthSteps ( depthSteps )
参数

depthSteps float

另请参阅

depthSteps()

PySide2.Qt3DRender.Qt3DRender.QPolygonOffset. setScaleFactor ( scaleFactor )
参数

scaleFactor float

另请参阅

scaleFactor()