more project structure cleanup, removing spaghetti code, using traits
This commit is contained in:
@@ -24,9 +24,9 @@ impl UniformValues {
|
||||
}
|
||||
|
||||
pub fn update(&mut self, camera: &Camera, time: f32) {
|
||||
self.view_inv = camera.view_matrix().invert().unwrap().into();
|
||||
self.proj_inv = camera.proj_matrix().invert().unwrap().into();
|
||||
self.cam_pos = camera.position.into();
|
||||
self.view_inv = camera.get_view().invert().unwrap().into();
|
||||
self.proj_inv = camera.get_projection().invert().unwrap().into();
|
||||
self.cam_pos = camera.get_position().into();
|
||||
self.time = time;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user