From c7538869b4c50f515bd74861738927b3353f7468 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Sat, 30 Sep 2023 18:50:32 -0700 Subject: [PATCH] increase far clipping plane --- src/body.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/body.rs b/src/body.rs index 005d3a7..99c1ef9 100644 --- a/src/body.rs +++ b/src/body.rs @@ -206,7 +206,7 @@ impl Camera { mat3_from_rotation_y_f64(self.angles.x-self.sensitivity.x*(delta_x as f64)) } pub fn proj(&self)->glam::Mat4{ - perspective_rh(self.fov.x, self.fov.y, 0.5, 1000.0) + perspective_rh(self.fov.x, self.fov.y, 0.5, 2000.0) } pub fn view(&self,pos:glam::Vec3)->glam::Mat4{ //f32 good enough for view matrix