fx: ran linter

This commit is contained in:
2026-05-02 14:02:06 +02:00
parent 17ad6e30db
commit a44e61c1f7
7 changed files with 14 additions and 32 deletions

View File

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