mirror of
https://github.com/lisk77/comet.git
synced 2025-10-24 05:48:50 +00:00
fix: completely annihilated matrix and rewrote it with a good orthographic projection matrix finally
This commit is contained in:
parent
c79e69f8f4
commit
4e9e296ba4
4 changed files with 341 additions and 518 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue