| void Spices::Camera::SetPerspective | ( | float | fov, |
| float | nearPlane, | ||
| float | aspectRatio = 1.777f ) |
Set ProjectionMatrix by using perspective type.
| [in] | fov | Field of View, usually 45.0 degree. |
| [in] | nearPlane | NearPlane, usually 0.01. |
| [in] | aspectRatio | AspectRatio, viewport width / viewport height. |
Definition at line 15 of file Camera.cpp.
References Spices::PerspectiveParam::aspectRatio, Spices::PerspectiveParam::fov, m_PerspectiveParam, m_ProjectionType, Spices::PerspectiveParam::nearPlane, and Spices::Perspective.
Referenced by SetPerspective().