diff --git a/src/render/mod.rs b/src/render/mod.rs index a5e76eb..1d472b3 100644 --- a/src/render/mod.rs +++ b/src/render/mod.rs @@ -229,7 +229,7 @@ impl Renderer { self.perspective_matrix = cgmath::Matrix4::from( cgmath::PerspectiveFov { fovy: cgmath::Rad::from(cgmath::Deg{s: 90f32}), - aspect: (width / height) as f32, + aspect: (width as f32 / height as f32), near: 0.1f32, far: 500.0f32, }