diff options
author | metamuffin <metamuffin@disroot.org> | 2025-01-10 02:20:21 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-01-10 02:20:21 +0100 |
commit | 3ecd4588d4aa85a93a06aa5a1a3a60b918a72557 (patch) | |
tree | bfb6b2624e23fc09d640e36a5d5de1b89777062e /client/src/camera.rs | |
parent | 87f67ff9ae1aa74008042750d354a7dad030020d (diff) | |
download | weareserver-3ecd4588d4aa85a93a06aa5a1a3a60b918a72557.tar weareserver-3ecd4588d4aa85a93a06aa5a1a3a60b918a72557.tar.bz2 weareserver-3ecd4588d4aa85a93a06aa5a1a3a60b918a72557.tar.zst |
some progress on egui
Diffstat (limited to 'client/src/camera.rs')
-rw-r--r-- | client/src/camera.rs | 6 |
1 files changed, 1 insertions, 5 deletions
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) |