mirror of
https://github.com/lisk77/comet.git
synced 2025-10-25 06:18:49 +00:00
fix: some things are outdated for some reason...
This commit is contained in:
parent
5456d2a1d7
commit
2654a9fdc9
11 changed files with 431 additions and 44 deletions
|
|
@ -30,7 +30,12 @@ impl Camera {
|
|||
}
|
||||
|
||||
pub fn build_view_projection_matrix(&self) -> cgmath::Matrix4<f32> {
|
||||
OPENGL_TO_WGPU_MATRIX * cgmath::ortho(self.position.x() - self.dimension.x() / 2.0, self.position.x() + self.dimension.x() / 2.0, self.position.y() - self.dimension.y() / 2.0, self.position.y() + self.dimension.y() / 2.0, 1.0, 0.0)
|
||||
OPENGL_TO_WGPU_MATRIX * cgmath::ortho(self.position.x() - self.dimension.x() / 2.0,
|
||||
self.position.x() + self.dimension.x() / 2.0,
|
||||
self.position.y() - self.dimension.y() / 2.0,
|
||||
self.position.y() + self.dimension.y() / 2.0,
|
||||
1.0,
|
||||
0.0)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue