This commit is contained in:
Piotrek
2021-05-04 20:26:15 +02:00
parent 78d3a43deb
commit 89934ba97c
13 changed files with 68 additions and 78 deletions
+3 -3
View File
@@ -24,9 +24,9 @@ impl Camera {
}
pub fn set_aspect(&mut self, aspect: f32) { self.proj_matrix = cgmath::perspective(Deg(60.0), aspect, 0.1, 100.0); }
pub fn get_projection(&self) -> Matrix4<f32> { return self.proj_matrix; }
pub fn get_view(&self) -> Matrix4<f32> { return self.view_matrix; }
pub fn get_position(&self) -> Point3<f32> { return self.position; }
pub fn get_projection(&self) -> Matrix4<f32> { self.proj_matrix }
pub fn get_view(&self) -> Matrix4<f32> { self.view_matrix }
pub fn get_position(&self) -> Point3<f32> { self.position }
}
pub trait CameraTransform {