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

@ -25,8 +25,8 @@ impl Projection {
pub fn resize(&mut self, width: u32, height: u32) { self.aspect = width as f32 / height as f32; }
pub fn calc_matrix(&self) -> Mat4 {
/*pub fn calc_matrix(&self) -> Mat4 {
Mat4::perspective_matrix(self.fovy, self.aspect, self.znear, self.zfar)
}
}*/
}