Skip to content

CameraLens: use ParametersDirty rather than AllDirty

Paul Lemire requested to merge lemirep/qt3d:patch into kde/5.15

AllDirty would force a lot of recomputations that aren't needed. When the CameraLens changes the only things we need to do are:

  • update projection matrix in the shader and the frustum culling

Those things are performed in the RenderCommand update stage which is triggered with ParametersDirty

Change-Id: I27241f3ec323182b19fca7e5528d851680eeec8c Reviewed-by: Mike Krus mike.krus@kdab.com (cherry picked from commit ca43cd97) Reviewed-by: Qt Cherry-pick Bot cherrypick_bot@qt-project.org

Merge request reports