Fixes
This commit is contained in:
@ -36,6 +36,13 @@ namespace ia::iae
|
||||
glm::orthoLH(0.0f, (FLOAT32) width, (FLOAT32) height, 0.0f, Renderer::MIN_DEPTH, Renderer::MAX_DEPTH);
|
||||
}
|
||||
|
||||
CONST Mat4 *CameraComponent::GetViewMatrix()
|
||||
{
|
||||
const auto pos = m_node->GetPosition() + m_positionOffset;
|
||||
m_viewMatrix = glm::lookAtLH(glm::vec3{pos, -2.0f}, {pos, 0.0f}, {0.0f, 1.0f, 0.0f});
|
||||
return &m_viewMatrix;
|
||||
}
|
||||
|
||||
VOID CameraComponent::Draw()
|
||||
{
|
||||
}
|
||||
@ -46,8 +53,6 @@ namespace ia::iae
|
||||
|
||||
VOID CameraComponent::Update()
|
||||
{
|
||||
const auto pos = m_node->GetPosition() + m_positionOffset;
|
||||
m_viewMatrix = glm::lookAtLH(glm::vec3{pos, -2.0f}, {pos, 0.0f}, {0.0f, 1.0f, 0.0f});
|
||||
}
|
||||
|
||||
VOID CameraComponent::FixedUpdate()
|
||||
|
||||
Reference in New Issue
Block a user