| 58 | } |
| 59 | |
| 60 | void Camera::set_perspective(float fov, float aspect, float znear, float zfar) |
| 61 | { |
| 62 | this->fov = fov; |
| 63 | this->znear = znear; |
| 64 | this->zfar = zfar; |
| 65 | matrices.perspective = glm::perspective(glm::radians(fov), aspect, znear, zfar); |
| 66 | updated = true; |
| 67 | } |
| 68 | |
| 69 | void Camera::update_aspect_ratio(float aspect) |
| 70 | { |
no outgoing calls
no test coverage detected