Switch to nicer default scale

This commit is contained in:
Matthew Gordon 2025-01-03 21:40:54 -04:00
parent 9348c6021b
commit 171ffa180b
2 changed files with 5 additions and 5 deletions

View File

@ -44,7 +44,7 @@ impl Camera {
std::f32::consts::FRAC_PI_4,
viewport_aspect_ratio,
1.0,
10000.0,
30000.0,
);
let view_matrix = glam::Mat4::look_at_rh(glam::Vec3::ZERO, glam::Vec3::ZERO, glam::Vec3::Z);
Self {

View File

@ -174,10 +174,10 @@ impl Dem {
let (num_cells_x, num_cells_y) = tiff.dimensions().unwrap();
match tiff.read_image().unwrap() {
tiff::decoder::DecodingResult::F32(f32_values) => {
let x_min = -500.0;
let x_max = 500.0;
let y_min = -500.0;
let y_max = 500.0;
let x_min = -5000.0;
let x_max = 5000.0;
let y_min = -5000.0;
let y_max = 5000.0;
let (z_min, z_max) = f32_values[1..]
.iter()
.fold((f32_values[0], f32_values[0]), |(min, max), elem| {