ClipPlane QML Type

启用额外的 OpenGL 裁剪平面,可在着色器中使用 gl_ClipDistance。更多

Import Statement: import Qt3D.Render 2.9
In C++: QClipPlane
Inherits:

RenderState

Status: Deprecated

属性

详细说明

默认情况下,OpenGL 最多支持 8 个额外的剪辑平面。ClipPlane 允许启用其中一个附加平面。这些平面可以在着色器中使用 gl_ClipDistance[i](i 在 0 到 7 之间)进行操作。底层实现可能支持 8 个以上的剪辑平面,但并不保证。

属性说明

distance : real

保存平面与世界原点的距离。


normal : vector3d

保存平面的法线。


planeIndex : int

保存平面的索引。

注: 通常介于 0-7 之间。


© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.