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,
|
std::f32::consts::FRAC_PI_4,
|
||||||
viewport_aspect_ratio,
|
viewport_aspect_ratio,
|
||||||
1.0,
|
1.0,
|
||||||
10000.0,
|
30000.0,
|
||||||
);
|
);
|
||||||
let view_matrix = glam::Mat4::look_at_rh(glam::Vec3::ZERO, glam::Vec3::ZERO, glam::Vec3::Z);
|
let view_matrix = glam::Mat4::look_at_rh(glam::Vec3::ZERO, glam::Vec3::ZERO, glam::Vec3::Z);
|
||||||
Self {
|
Self {
|
||||||
|
|
|
||||||
|
|
@ -174,10 +174,10 @@ impl Dem {
|
||||||
let (num_cells_x, num_cells_y) = tiff.dimensions().unwrap();
|
let (num_cells_x, num_cells_y) = tiff.dimensions().unwrap();
|
||||||
match tiff.read_image().unwrap() {
|
match tiff.read_image().unwrap() {
|
||||||
tiff::decoder::DecodingResult::F32(f32_values) => {
|
tiff::decoder::DecodingResult::F32(f32_values) => {
|
||||||
let x_min = -500.0;
|
let x_min = -5000.0;
|
||||||
let x_max = 500.0;
|
let x_max = 5000.0;
|
||||||
let y_min = -500.0;
|
let y_min = -5000.0;
|
||||||
let y_max = 500.0;
|
let y_max = 5000.0;
|
||||||
let (z_min, z_max) = f32_values[1..]
|
let (z_min, z_max) = f32_values[1..]
|
||||||
.iter()
|
.iter()
|
||||||
.fold((f32_values[0], f32_values[0]), |(min, max), elem| {
|
.fold((f32_values[0], f32_values[0]), |(min, max), elem| {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue