Class containing helper functions for getting camera data used for rendering. More...
| Header: | #include <QSSGCameraHelpers>
|
| Since: | Qt 6.7 |
| QMatrix4x4 | getViewProjectionMatrix(const QSSGCameraId cameraId, const QMatrix4x4 *globalTransform = nullptr) |
[static] QMatrix4x4 QSSGCameraHelpers::getViewProjectionMatrix(const QSSGCameraId cameraId, const QMatrix4x4 *globalTransform = nullptr)
Get the projection matrix for cameraId. An optional transform argument can be given to be used instead of the cameras global transform when calculating the projection matrix.
Returns projection matrix for cameraId
globalTransform
See also QSSGRenderHelpers::createRenderables().
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.9/qssgcamerahelpers.html