use of td pi

This commit is contained in:
2023-06-06 17:59:48 +02:00
parent fb9e125f16
commit f62322752d

View File

@@ -76,7 +76,7 @@ void Renderer::Prepare() {
} }
void Renderer::Resize(int width, int height) { void Renderer::Resize(int width, int height) {
m_Camera.projectionMatrix = maths::Perspective(80.0f / 180.0f * M_PI, static_cast<float>(width) / height, 0.1f, 160.0f); m_Camera.projectionMatrix = maths::Perspective(80.0f / 180.0f * PI, static_cast<float>(width) / height, 0.1f, 160.0f);
m_Camera.InvProjectionMatrix = maths::Inverse(m_Camera.projectionMatrix); m_Camera.InvProjectionMatrix = maths::Inverse(m_Camera.projectionMatrix);
m_WorldShader->Start(); m_WorldShader->Start();
m_WorldShader->SetProjectionMatrix(m_Camera.projectionMatrix); m_WorldShader->SetProjectionMatrix(m_Camera.projectionMatrix);