SpiecsEngine
 
Loading...
Searching...
No Matches

◆ CalculatePMatrixReverseZ()

void Spices::Camera::CalculatePMatrixReverseZ ( )
private

Calculate Projection Matrix by parameter.

Definition at line 94 of file Camera.cpp.

95 {
97
98 switch (m_ProjectionType)
99 {
105 );
106 break;
115 );
116 break;
117 }
118 }
#define SPICES_PROFILE_ZONE
OrthographicParam m_OrthographicParam
Camera OrthographicParam.
Definition Camera.h:184
glm::mat4 m_ProjectionMatrix
ProjectionMatrix. Init with identity Matrix.
Definition Camera.h:163
ProjectionType m_ProjectionType
Definition Camera.h:169
PerspectiveParam m_PerspectiveParam
Camera PerspectiveParam.
Definition Camera.h:179
glm::mat4 OtrhographicMatrix(float left, float right, float top, float bottom, float nearPlane, float farPlane)
Calculate Otrhographic Matrix.
Definition Math.cpp:114
glm::mat4 PerspectiveMatrixInverseZ(float fov, float nearPlane, float aspectRatio)
Calculate Perspective Matrix(reverse z version).
Definition Math.cpp:127
@ Orthographic
orthographic
Definition Camera.h:27
@ Perspective
perspective
Definition Camera.h:22

References m_ProjectionType.

Referenced by GetPMatrixReverseZ().