Open gamecoder-nz opened 1 year ago
If I create another matrix where the top and bottom are swapped like this
glm::ortho(orthoLeft, orthoRight, orthoTop, orthoBottom, (float)m_OrthographicNear, (float)m_OrthographicFar);
Then it works
It also works if I swap the projection matrices around. So the top and bottom for ImGuizmo has to be the opposite of what's used for the engine.
I'm sure I'm doing something wrong but I can't figure out what. I have an orthographic projection like this
The camera doesn't rotate and stays at z = 10 but the y axis for the guizmo is inverted. It is pointing the wrong direction and drags in the wrong direction.