increase far clipping plane

This commit is contained in:
Quaternions 2023-09-30 18:50:32 -07:00
parent 923889d956
commit c7538869b4

View File

@ -206,7 +206,7 @@ impl Camera {
mat3_from_rotation_y_f64(self.angles.x-self.sensitivity.x*(delta_x as f64)) mat3_from_rotation_y_f64(self.angles.x-self.sensitivity.x*(delta_x as f64))
} }
pub fn proj(&self)->glam::Mat4{ 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{ pub fn view(&self,pos:glam::Vec3)->glam::Mat4{
//f32 good enough for view matrix //f32 good enough for view matrix