fix: completely annihilated matrix and rewrote it with a good orthographic projection matrix finally

This commit is contained in:
lisk77 2025-03-10 01:39:00 +01:00
parent c79e69f8f4
commit 4e9e296ba4
4 changed files with 341 additions and 518 deletions

View file

@ -345,6 +345,6 @@ impl Camera for Camera2D {
let bottom = -self.dimensions.y() / 2.0;
let top = self.dimensions.y() / 2.0;
Mat4::OPENGL * Mat4::orthographic_matrix(left, right, bottom, top, 1.0, 0.0)
Mat4::OPENGL_CONV * Mat4::orthographic_projection(left, right, bottom, top, 1.0, 0.0)
}
}