Qt3DRender::QFrustumCulling Class
class Qt3DRender::QFrustumCulling为 FrameGraph 启用凹凸剔除功能。更多
Header: | #include <QFrustumCulling> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
qmake: | QT += 3drender |
在 QML 中: | FrustumCulling |
继承: | Qt3DRender::QFrameGraphNode |
状态: | 已废弃 |
公共函数
QFrustumCulling(Qt3DCore::QNode *parent = nullptr) |
详细说明
QFrustumCulling 类可根据摄像机视图和实体的 QGeometry 边界对可绘制实体进行挫边剔除。如果 FrameGraph 中存在 QFrustumCulling,则只会绘制 QGeometry 边界与摄像机挫面(即摄像机视图)相交的实体。如果不存在 QFrustumCulling,则会绘制所有可绘制的实体。摄像机由当前层次结构中的QCameraSelector 帧图节点选择。当渲染的场景比较复杂时,Frustum culling 可以节省大量 GPU 处理时间。
另请参阅 QCameraSelector 。
成员函数文档
[explicit]
QFrustumCulling::QFrustumCulling(Qt3DCore::QNode *parent = nullptr)
构造函数以指定的parent 创建一个实例。
© 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.