fix: some things are outdated for some reason...

This commit is contained in:
lisk77 2025-01-01 06:21:32 +01:00
parent 5456d2a1d7
commit 2654a9fdc9
11 changed files with 431 additions and 44 deletions

View file

@ -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)
}
}