CameraMultiview
The CameraMultiview class provides control for multiview rendering such as stereo, panorama, or multi-display. It supports up to 16 independent viewports rendered in parallel within a single rendering operation, offering better performance than serial rendering.
#include <scene/TellusimCameraMultiview.h>
Inheritance
- Inherits from Camera
Constructors
explicit CameraMultiview(const char *name = nullptr)
explicit CameraMultiview(Scene &scene, const char *name = nullptr)
Methods
Near clipping plane.
void setZNear(float32_t distance)
Far clipping plane.
void setZFar(float32_t distance)
Camera projection matrices.
void setProjection(uint32_t index, Matrix4x4f projection)
const Matrix4x4f getProjection(uint32_t index) const
Camera modelview matrices.
void setModelview(uint32_t index, Matrix4x3f modelview)
const Matrix4x3f getModelview(uint32_t index) const
Set stereo projection matrices.
void setStereoProjection(float32_t fov, float32_t aspect, float32_t distance, float32_t separation)
Set cube projection matrices.
void setCubeProjection()