QClipPlane Class

class Qt3DRender::QClipPlane

Enables an additional OpenGL clipping plane that can be in shaders using gl_ClipDistance. More...

Header: #include <QClipPlane>
qmake: QT += 3drender
Since: Qt 5.5
Instantiated By: ClipPlane
Inherits: Qt3DRender::QRenderState

This class was introduced in Qt 5.5.

Detailed Description

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.