ignore obj files
This commit is contained in:
parent
346e9aa85d
commit
6d335f43ea
2 changed files with 3 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
|||
/target
|
||||
*.tga
|
||||
*.obj
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue