Fixes
This commit is contained in:
@ -40,7 +40,7 @@ namespace ia::iae
|
||||
CONST Mat4 *CameraComponent::GetViewMatrix()
|
||||
{
|
||||
const auto pos = (m_node->GetPosition() + m_positionOffset) * Engine::GetSceneScalingFactor();
|
||||
m_viewMatrix = glm::lookAtLH(glm::vec3{pos, -2.0f}, {pos, 0.0f}, {0.0f, 1.0f, 0.0f});
|
||||
m_viewMatrix = glm::lookAtLH(glm::vec3{pos, -1.0f}, {pos, 0.0f}, {0.0f, 1.0f, 0.0f});
|
||||
return &m_viewMatrix;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user