diff --git a/src/render/camera.rs b/src/render/camera.rs index 4cea0cf6..2b81c5f0 100644 --- a/src/render/camera.rs +++ b/src/render/camera.rs @@ -22,7 +22,6 @@ pub const FLIP_Y: cgmath::Matrix4 = cgmath::Matrix4::new( #[derive(Debug, Clone)] pub struct Camera { - pub translation: cgmath::Matrix4, pub position: cgmath::Point3, pub yaw: cgmath::Rad, pub pitch: cgmath::Rad, @@ -45,7 +44,6 @@ impl Camera { ) -> Self { Self { position: position.into(), - translation: Matrix4::identity(), yaw: yaw.into(), pitch: pitch.into(), width: width as f64, @@ -63,7 +61,7 @@ impl Camera { self.position, cgmath::Vector3::new(self.yaw.cos(), self.pitch.sin(), self.yaw.sin()).normalize(), cgmath::Vector3::unit_y(), - ) * self.translation + ) } pub fn calc_view_proj(&self, perspective: &Perspective) -> Matrix4 {