Switch to nicer default scale
This commit is contained in:
parent
9348c6021b
commit
171ffa180b
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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| {
|
||||
|
|
|
|||
Loading…
Reference in New Issue