From 0ac1c1aa6b1fe016152c7fb020c86df75f2d5457 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Sun, 18 Feb 2024 00:23:27 -0800 Subject: [PATCH] adjust clipping planes --- src/graphics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphics.rs b/src/graphics.rs index c8b6e1e9..b94a84e0 100644 --- a/src/graphics.rs +++ b/src/graphics.rs @@ -75,7 +75,7 @@ fn perspective_rh(fov_x_slope:f32,fov_y_slope:f32,z_near:f32,z_far:f32)->glam::M } impl GraphicsCamera{ pub fn proj(&self)->glam::Mat4{ - perspective_rh(self.fov.x,self.fov.y,0.5,2000.0) + perspective_rh(self.fov.x,self.fov.y,0.4,4000.0) } pub fn world(&self,pos:glam::Vec3,angles:glam::Vec2)->glam::Mat4{ //f32 good enough for view matrix