From 83099163b7e6caa09020b8fdd9631e992cd74100 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Wed, 30 Aug 2023 19:17:00 -0700 Subject: [PATCH] 90 fov of course --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index c765f46..cb73509 100644 --- a/src/main.rs +++ b/src/main.rs @@ -69,7 +69,7 @@ fn get_control_dir(controls: u32) -> glam::Vec3{ impl Camera { fn to_uniform_data(&self) -> [f32; 16 * 3 + 4] { let aspect = self.screen_size.0 as f32 / self.screen_size.1 as f32; - let proj = glam::Mat4::perspective_rh(consts::FRAC_PI_4, aspect, 1.0, 200.0); + let proj = glam::Mat4::perspective_rh(consts::FRAC_PI_2, aspect, 1.0, 200.0); let view = (glam::Mat4::from_translation(self.pos) * glam::Mat4::from_euler(glam::EulerRot::YXZ, self.yaw, self.pitch, 0f32)).inverse(); let proj_inv = proj.inverse();