More farting with the camera.
This commit is contained in:
@@ -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);
|
||||
|
BIN
output.png
BIN
output.png
Binary file not shown.
Before Width: | Height: | Size: 546 KiB After Width: | Height: | Size: 545 KiB |
Reference in New Issue
Block a user