From 3ecd4588d4aa85a93a06aa5a1a3a60b918a72557 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Fri, 10 Jan 2025 02:20:21 +0100 Subject: some progress on egui --- client/src/camera.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'client/src/camera.rs') diff --git a/client/src/camera.rs b/client/src/camera.rs index 3876e8a..d7a69c5 100644 --- a/client/src/camera.rs +++ b/client/src/camera.rs @@ -27,7 +27,7 @@ impl Camera { pub fn new() -> Self { Self { aspect: 1., - fov: 0.5, + fov: 1., pos: Vec3::Z * 3., rot: Vec3::ZERO, } @@ -41,10 +41,6 @@ impl Camera { Mat3::from_euler(EulerRot::YXZ, self.rot.x, self.rot.y, self.rot.z) } pub fn to_matrix(&self) -> Mat4 { - // let tdir = - // Mat3::from_euler(EulerRot::ZXY, self.rot.x, self.rot.y, self.rot.z) * Vec3::NEG_Z; - // * Mat4::look_at_rh(self.pos, self.pos + tdir, Vec3::Y) - Mat4::perspective_infinite_reverse_rh(self.fov, self.aspect, 0.1) * Mat4::from_mat3(self.rotation_mat().inverse()) * Mat4::from_translation(-self.pos) -- cgit v1.2.3-70-g09d2