remove useless computation

This commit is contained in:
2023-06-05 13:07:56 +02:00
parent 41f8c152eb
commit 19c03010cb

View File

@@ -116,9 +116,6 @@ Vec2f Renderer::GetCursorWorldPos(const Vec2f& cursorPos, float windowWidth, flo
rayEye = {rayEye.x, rayEye.y, -1.0f, 0.0f}; rayEye = {rayEye.x, rayEye.y, -1.0f, 0.0f};
Vec4f rayWorld = maths::Dot(m_Camera.InvViewMatrix, rayEye); Vec4f rayWorld = maths::Dot(m_Camera.InvViewMatrix, rayEye);
rayWorld.w = 0;
maths::Normalize(rayWorld);
float lambda = - m_Camera.CamPos.y / rayWorld.y; float lambda = - m_Camera.CamPos.y / rayWorld.y;