Definition camerasettings.h:20
const Math::mat4 & GetInvProjTransform() const
get the inverse projection matrix
Definition camerasettings.h:88
float zNear
Definition camerasettings.h:64
const Math::vec2 & GetFocalLength() const
get focal length (computed from fov and aspect ratio)
Definition camerasettings.h:187
const Math::mat4 & GetProjTransform() const
get projection matrix
Definition camerasettings.h:79
float GetFarHeight() const
get height of far plane
Definition camerasettings.h:178
bool isPersp
Definition camerasettings.h:63
float nearWidth
Definition camerasettings.h:68
Math::mat4 projMatrix
Definition camerasettings.h:60
float farWidth
Definition camerasettings.h:70
float aspect
Definition camerasettings.h:67
bool IsPerspective() const
return true if this is a perspective projection
Definition camerasettings.h:97
void SetupPerspectiveFov(float fov, float aspect, float zNear, float zFar)
setup a perspective view volume
Definition camerasettings.cc:32
float GetZFar() const
get far plane distance
Definition camerasettings.h:124
Math::mat4 invProjMatrix
Definition camerasettings.h:61
float GetNearHeight() const
get height of near plane
Definition camerasettings.h:160
float GetFarWidth() const
get width of far plane
Definition camerasettings.h:169
float zFar
Definition camerasettings.h:65
Math::vec2 focalLength
Definition camerasettings.h:72
void SetupOrthogonal(float w, float h, float zNear, float zFar)
setup an orthogonal projection transform
Definition camerasettings.cc:63
float GetNearWidth() const
get width of near plane
Definition camerasettings.h:151
float GetFov() const
get field-of-view (only if perspective)
Definition camerasettings.h:133
float farHeight
Definition camerasettings.h:71
float GetAspect() const
get aspect ration (only if perspective)
Definition camerasettings.h:142
float GetZNear() const
get near plane distance
Definition camerasettings.h:115
CameraSettings()
default constructor
Definition camerasettings.cc:19
float fov
Definition camerasettings.h:66
bool IsOrthogonal() const
return true if this is an orthogonal transform
Definition camerasettings.h:106
float nearHeight
Definition camerasettings.h:69
Implements the shader server used by Vulkan.
Definition cameramanager.h:21
A 4x4 single point precision float matrix.
Definition mat4.h:49
A 2-component float vector class.
Definition vec2.h:21