mirror of
https://github.com/lisk77/comet.git
synced 2025-12-15 18:18: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
|
|
@ -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)
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue