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:
parent
e8a7e4cbed
commit
996835826e
|
@ -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…
Reference in New Issue