summaryrefslogtreecommitdiff
path: root/client/src/camera.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-01-17 23:32:27 +0100
committermetamuffin <metamuffin@disroot.org>2025-01-17 23:32:27 +0100
commitf5ffcaf01b91daf0019dd6534b035398fa51f2f0 (patch)
treeef271596fee967ded3c7c1668033bba97823afbd /client/src/camera.rs
parent1ca762dedcdd6c87086560dd56ab3566b08243d0 (diff)
downloadweareserver-f5ffcaf01b91daf0019dd6534b035398fa51f2f0.tar
weareserver-f5ffcaf01b91daf0019dd6534b035398fa51f2f0.tar.bz2
weareserver-f5ffcaf01b91daf0019dd6534b035398fa51f2f0.tar.zst
fix ui unprojection
Diffstat (limited to 'client/src/camera.rs')
-rw-r--r--client/src/camera.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/camera.rs b/client/src/camera.rs
index d2d4bda..4264e40 100644
--- a/client/src/camera.rs
+++ b/client/src/camera.rs
@@ -47,7 +47,7 @@ impl Camera {
Mat3::from_euler(EulerRot::YXZ, self.rot.x, self.rot.y, self.rot.z)
}
pub fn to_matrix(&self) -> Mat4 {
- Mat4::perspective_rh(self.fov, self.aspect, 0.1, 300.)
+ Mat4::perspective_rh(self.fov, self.aspect, 0.01, 300.)
* Mat4::from_mat3(self.rotation_mat().inverse())
* Mat4::from_translation(-self.pos)
}