From b0d2ad015d643bada0d1143a8a1a394608dc8625 Mon Sep 17 00:00:00 2001 From: Mate Kovacs Date: Tue, 28 Nov 2023 20:25:14 +0900 Subject: [PATCH] revisit near and far clip values --- crates/viewer/src/camera.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/viewer/src/camera.rs b/crates/viewer/src/camera.rs index 6139b58c..c068510b 100644 --- a/crates/viewer/src/camera.rs +++ b/crates/viewer/src/camera.rs @@ -92,8 +92,8 @@ impl OrbitCamera { let proj = Mat4::perspective_rh( std::f32::consts::PI / 2.0, self.aspect_ratio, - 0.01, - 1000.0, + 10.0, + 10_000.0, ); (proj, self.zoom_factor * self.radius) },