More farting with the camera.

This commit is contained in:
Miguel Angel Astor Romero
2017-01-12 17:35:17 -04:00
parent 54979c3818
commit e720859918
2 changed files with 4 additions and 5 deletions

View File

@@ -26,11 +26,10 @@ public:
m_up(normalize(_u)),
m_h(h),
m_w(w),
m_fov(fov)
{
m_a_ratio = static_cast<float>(w) / static_cast<float>(h);
m_inv_view_matrix = inverse(lookAt(_e, _l, _u));
}
m_fov(fov),
m_a_ratio(static_cast<float>(w) / static_cast<float>(h)),
m_inv_view_matrix(inverse(lookAt(_e, _l, normalize(_u))))
{ }
void reset();
void translate(vec3 t);