Skip to content

Commit

Permalink
fix first person camera lookatMat (#334)
Browse files Browse the repository at this point in the history
  • Loading branch information
KVM-Explorer authored and OlorinMedas committed Sep 10, 2022
1 parent 8e75541 commit 51e0544
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ namespace Piccolo
m_left = q_yaw * q_pitch * m_left;
m_up = m_foward.crossProduct(m_left);

Matrix4x4 desired_mat = Math::makeLookAtMatrix(eye_pos, m_foward, m_up);
Matrix4x4 desired_mat = Math::makeLookAtMatrix(eye_pos, eye_pos + m_foward, m_up);

RenderSwapContext& swap_context = g_runtime_global_context.m_render_system->getSwapContext();
CameraSwapData camera_swap_data;
Expand Down

0 comments on commit 51e0544

Please sign in to comment.