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_up(normalize(_u)),
m_h(h), m_h(h),
m_w(w), m_w(w),
m_fov(fov) m_fov(fov),
{ m_a_ratio(static_cast<float>(w) / static_cast<float>(h)),
m_a_ratio = static_cast<float>(w) / static_cast<float>(h); m_inv_view_matrix(inverse(lookAt(_e, _l, normalize(_u))))
m_inv_view_matrix = inverse(lookAt(_e, _l, _u)); { }
}
void reset(); void reset();
void translate(vec3 t); void translate(vec3 t);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 546 KiB

After

Width:  |  Height:  |  Size: 545 KiB