fx: ran linter
This commit is contained in:
@@ -54,9 +54,9 @@ impl Triangle {
|
||||
|
||||
let diff = (a4 - a1 - a2 - a3).abs();
|
||||
if diff < 0.001 {
|
||||
return Some(Hit::new(t, p, normal, material, normal.dot(&-r.dir()) > 0.));
|
||||
Some(Hit::new(t, p, normal, material, normal.dot(&-r.dir()) > 0.))
|
||||
} else {
|
||||
return None;
|
||||
None
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -86,6 +86,6 @@ impl Hittable for Triangle {
|
||||
|
||||
fn normal_at(&self, _p: &Vec3) -> Vec3 {
|
||||
// FIXME: might cause ownership issues
|
||||
return self.normal;
|
||||
self.normal
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user