9#ifndef AVARA3D_VISUAL_CAMERA_ORTHOGRAPHICCAMERA_H
10#define AVARA3D_VISUAL_CAMERA_ORTHOGRAPHICCAMERA_H
15#include "a3d/visual/camera/Camera.h"
64 math::mat4 projection(const math::uvec2& viewportSize) const override;
Base class for camera projection models used by VisualWorld.
const std::optional< std::string > & name() const
Returns the optional camera name.
Camera using a centered orthographic projection with a fixed vertical size.
OrthographicCamera(const std::string &name, float zNear, float zFar, float ySize)
Creates a named orthographic camera with the supplied clipping distances and vertical size.
OrthographicCamera(float zNear, float zFar, float ySize)
Creates an unnamed orthographic camera with the supplied clipping distances and vertical size.
float zNear() const
Returns the near clipping distance.
OrthographicCamera()
Creates an unnamed camera with a 0.1 near plane, 1000 far plane, and vertical size of 2.
float ySize() const
Returns the vertical size of the projection in scene units.
float zFar() const
Returns the far clipping distance.