QFrustumCulling Class

( Qt3DRender::QFrustumCulling )

Enable frustum culling for the FrameGraph 更多...

頭: #include <QFrustumCulling>
qmake: QT += 3drender
Since: Qt 5.7
實例化: FrustumCulling
繼承: Qt3DRender::QFrameGraphNode

公共函數

QFrustumCulling (Qt3DCore::QNode * parent = nullptr)

額外繼承成員

詳細描述

Enable frustum culling for the FrameGraph

A QFrustumCulling class enables frustum culling of the drawable entities based on the camera view and QGeometry bounds of the entities. If QFrustumCulling is present in the FrameGraph, only the entities whose QGeometry bounds intersect with the camera frustum, i.e. the view of the camera, are drawn. If QFrustumCulling is not present, all drawable entities will be drawn. The camera is selected by a QCameraSelector frame graph node in the current hierarchy. Frustum culling can save a lot of GPU processing time when the rendered scene is complex.

另請參閱 QCameraSelector .

成員函數文檔編製

QFrustumCulling:: QFrustumCulling ( Qt3DCore::QNode * parent = nullptr)

構造函數創建實例,采用指定的 parent .