diff --git a/camera.hpp b/camera.hpp index 1abeb4d..c9ea965 100644 --- a/camera.hpp +++ b/camera.hpp @@ -26,11 +26,10 @@ public: m_up(normalize(_u)), m_h(h), m_w(w), - m_fov(fov) - { - m_a_ratio = static_cast(w) / static_cast(h); - m_inv_view_matrix = inverse(lookAt(_e, _l, _u)); - } + m_fov(fov), + m_a_ratio(static_cast(w) / static_cast(h)), + m_inv_view_matrix(inverse(lookAt(_e, _l, normalize(_u)))) + { } void reset(); void translate(vec3 t); diff --git a/output.png b/output.png index 89d0d87..1a0ec99 100644 Binary files a/output.png and b/output.png differ