remove useless computation
This commit is contained in:
@@ -116,9 +116,6 @@ Vec2f Renderer::GetCursorWorldPos(const Vec2f& cursorPos, float windowWidth, flo
|
||||
rayEye = {rayEye.x, rayEye.y, -1.0f, 0.0f};
|
||||
|
||||
Vec4f rayWorld = maths::Dot(m_Camera.InvViewMatrix, rayEye);
|
||||
rayWorld.w = 0;
|
||||
|
||||
maths::Normalize(rayWorld);
|
||||
|
||||
float lambda = - m_Camera.CamPos.y / rayWorld.y;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user