diff --git a/.gitignore b/.gitignore index cca5b8b..9764ec7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /target *.tga +*.obj diff --git a/src/model.rs b/src/model.rs index 363d256..423098c 100644 --- a/src/model.rs +++ b/src/model.rs @@ -96,7 +96,7 @@ impl Model { fn world2view(point: Point3f, width: u32, height: u32) -> Point2i { let point = (point + 1.0) * 0.5; - let x = (point.x().min(1.0) * width as f32).round_ties_even() as i32; - let y = (point.y().min(1.0) * height as f32).round_ties_even() as i32; + let x = (point.x() * width as f32).round_ties_even() as i32; + let y = (point.y() * height as f32).round_ties_even() as i32; Point2i::new(x, y) }