本页内容

ClipPlane QML Type

启用一个额外的 OpenGL 剪裁平面,可在着色器中通过 gl_ClipDistance 进行设置。更多内容...

Import Statement: import Qt3D.Render 2.12
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之间。

© 2026 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.