limit camera zoom

This commit is contained in:
2019-07-28 11:06:16 +02:00
parent e923957c1e
commit 627a3bbb14
2 changed files with 9 additions and 4 deletions

View File

@@ -138,7 +138,9 @@ public:
Sampler m_sampler_mix;
glm::mat4 m_cam_rot = glm::mat4(1);
glm::vec3 m_cam_pos{ 0 };
float m_cam_fov = 85;
float m_cam_fov = 85.f;
const float m_cam_fov_min = 5.f;
const float m_cam_fov_max = 150.f;
glm::vec2 m_cur_pos;
std::shared_ptr<Brush> m_current_brush;