use of td pi
This commit is contained in:
@@ -76,7 +76,7 @@ void Renderer::Prepare() {
|
||||
}
|
||||
|
||||
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_WorldShader->Start();
|
||||
m_WorldShader->SetProjectionMatrix(m_Camera.projectionMatrix);
|
||||
|
||||
Reference in New Issue
Block a user