Do not change FOV when zooming in/out, only move the camera

It's odd to both move the camera and change FOV when one wishes to
enlarge or smallen the models. Let's only move the camera.
This commit is contained in:
Mikolaj Wielgus 2021-09-12 21:43:03 +02:00 committed by Mark Roszko
parent e8a7e4cbed
commit 996835826e
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ void CAMERA::rebuildProjection()
m_frustum.nearD = 0.10f; m_frustum.nearD = 0.10f;
// Ratio width / height of the window display // Ratio width / height of the window display
m_frustum.angle = 45.0f * m_zoom; m_frustum.angle = 45.0f;
m_projectionMatrix = glm::perspective( glm::radians( m_frustum.angle ), m_frustum.ratio, m_projectionMatrix = glm::perspective( glm::radians( m_frustum.angle ), m_frustum.ratio,
m_frustum.nearD, m_frustum.farD ); m_frustum.nearD, m_frustum.farD );