Enables an additional OpenGL clipping plane that can be in shaders using gl_ClipDistance. More...
| Header: | #include <QClipPlane> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender)target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake: | QT += 3drender |
| In QML: | ClipPlane |
| Inherits: | Qt3DRender::QRenderState |
| Status: | Deprecated |
| float | distance() const |
| QVector3D | normal() const |
| int | planeIndex() const |
| void | setDistance(float) |
| void | setNormal(QVector3D) |
| void | setPlaneIndex(int) |
| void | distanceChanged(float distance) |
| void | normalChanged(QVector3D normal) |
| void | planeIndexChanged(int 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.
Holds the distance of the plane from the world origin.
Access functions:
| float | distance() const |
| void | setDistance(float) |
Notifier signal:
| void | distanceChanged(float distance) |
Holds the normal of the plane.
Access functions:
| QVector3D | normal() const |
| void | setNormal(QVector3D) |
Notifier signal:
| void | normalChanged(QVector3D normal) |
Holds the index of the plane.
Note: Usually between 0-7.
Access functions:
| int | planeIndex() const |
| void | setPlaneIndex(int) |
Notifier signal:
| void | planeIndexChanged(int planeIndex) |
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: