Enable frustum culling for the FrameGraph. 更多...
头: | #include <QFrustumCulling> |
CMake: |
find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender) |
qmake: | QT += 3drender |
实例化: | FrustumCulling |
继承: | Qt3DRender::QFrameGraphNode |
QFrustumCulling (Qt3DCore::QNode * parent = nullptr) |
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 .
[explicit]
QFrustumCulling::
QFrustumCulling
(
Qt3DCore::QNode
*
parent
= nullptr)
The constructor creates an instance with the specified parent .