Enables an additional OpenGL clipping plane that can be in shaders using gl_ClipDistance. 更多 …
def
distance
()
def
normal
()
def
planeIndex
()
def
setDistance
(arg__1)
def
setNormal
(arg__1)
def
setPlaneIndex
(arg__1)
def
distanceChanged
(distance)
def
normalChanged
(normal)
def
planeIndexChanged
(planeIndex)
By default, OpenGL supports up to 8 additional clipping planes. Qt3DCore::QClipPlane allows to enable one of these additional planes. These planes can then be manipulated in the shaders using gl_ClipDistance[i] where i varies between 0 and 7. The underlying implementation may support more than 8 clip planes, but it is not guaranteed.
PySide2.Qt3DRender.Qt3DRender.
QClipPlane
(
[
parent=None
]
)
¶
parent
–
QNode
PySide2.Qt3DRender.Qt3DRender.QClipPlane.
distance
(
)
¶
float
另请参阅
PySide2.Qt3DRender.Qt3DRender.QClipPlane.
distanceChanged
(
distance
)
¶
distance
–
float
PySide2.Qt3DRender.Qt3DRender.QClipPlane.
normal
(
)
¶
QVector3D
另请参阅
PySide2.Qt3DRender.Qt3DRender.QClipPlane.
normalChanged
(
normal
)
¶
normal
–
QVector3D
PySide2.Qt3DRender.Qt3DRender.QClipPlane.
planeIndex
(
)
¶
int
另请参阅
PySide2.Qt3DRender.Qt3DRender.QClipPlane.
planeIndexChanged
(
planeIndex
)
¶
planeIndex
–
int
PySide2.Qt3DRender.Qt3DRender.QClipPlane.
setDistance
(
arg__1
)
¶
arg__1
–
float
另请参阅
PySide2.Qt3DRender.Qt3DRender.QClipPlane.
setNormal
(
arg__1
)
¶
arg__1
–
QVector3D
另请参阅
PySide2.Qt3DRender.Qt3DRender.QClipPlane.
setPlaneIndex
(
arg__1
)
¶
arg__1
–
int
另请参阅