Skip to content
Snippets Groups Projects
Commit 7cd292ac authored by Vanessa Karolek's avatar Vanessa Karolek
Browse files

[#92][Fix] fix camera projection from develop

It is not necessary to multiply by the inverse of y_correction because m_projection is never multiplied by y_correction. Only for getting the current projection matrix, we multiply by y_correction which will not update m_projection.
parent eab9f823
No related branches found
No related tags found
1 merge request!75Resolve "RTX-Module"
...@@ -49,7 +49,7 @@ namespace vkcv::camera { ...@@ -49,7 +49,7 @@ namespace vkcv::camera {
} }
void Camera::setProjection(const glm::mat4& projection) { void Camera::setProjection(const glm::mat4& projection) {
m_projection = glm::inverse(y_correction) * projection; m_projection = projection;
} }
glm::mat4 Camera::getMVP() const { glm::mat4 Camera::getMVP() const {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment