ignore obj files

This commit is contained in:
Joe Ardent 2025-09-06 13:01:22 -07:00
parent 346e9aa85d
commit 6d335f43ea
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
/target
*.tga
*.obj

View file

@ -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)
}