Browse Source

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.
6.0.7
Mikolaj Wielgus 4 years ago
committed by Mark Roszko
parent
commit
996835826e
  1. 2
      3d-viewer/3d_rendering/camera.cpp

2
3d-viewer/3d_rendering/camera.cpp

@ -173,7 +173,7 @@ void CAMERA::rebuildProjection()
m_frustum.nearD = 0.10f;
// 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_frustum.nearD, m_frustum.farD );

Loading…
Cancel
Save