rename lookat function

This commit is contained in:
2023-06-03 17:54:59 +02:00
parent 721f15b601
commit 95c92ec6c9
3 changed files with 4 additions and 4 deletions

View File

@@ -121,7 +121,7 @@ void Renderer::SetCamMovement(const Vec2f& mov) {
void Renderer::SetCamPos(const Vec2f& newPos) {
m_CamPos = newPos;
maths::Mat4f viewMatrix = maths::LookAt({m_CamPos.x, 50, m_CamPos.y}, {m_CamPos.x, -1, m_CamPos.y}, {0, 1, 0});
maths::Mat4f viewMatrix = maths::Look({m_CamPos.x, 50, m_CamPos.y}, {0, -1, -0.0001}, {0, 1, 0});
m_WorldShader->Start();
m_WorldShader->SetViewMatrix(viewMatrix);
m_EntityShader->Start();