wip: normal material

This commit is contained in:
djaidjai committed 2026-05-02 13:48:27 +02:00
1 parent c3d37f4758
commit ae73e626b9
10 files changed
+36 -12

No files matched your search

+1
View File
@@ -45,6 +45,7 @@ impl Hit {
self.front_face
}
// TODO: use front_face to discard back-hits for culling
pub fn hit_list(hittables: &Vec<Arc<dyn Hittable>>, r: &Ray) -> Option<Hit> {
let mut closest: Option<Hit> = None;
for hittable in hittables {
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.