| 48 | return m_camera_far; |
| 49 | } |
| 50 | void PerspectiveCameraController::SetFar(float value) { |
| 51 | m_camera_far = value; |
| 52 | UpdateProjectionMatrix(); |
| 53 | } |
| 54 | |
| 55 | void PerspectiveCameraController::UpdateProjectionMatrix() { |
| 56 | m_perspective_camera->SetProjectionMatrix(glm::perspective(m_camera_fov, m_aspect_ratio, m_camera_near, m_camera_far)); |