This commit is contained in:
djaidjai committed 2026-05-13 14:17:53 +02:00
1 parent b4b214ebf7
commit 71985a6c34
2 files changed
+18 -14

No files matched your search

+5 -2
View File
@@ -57,9 +57,10 @@ impl Debug for Quad {
}
}
// FIXME: texture mapping does not work properly for quads
impl Hittable for Quad {
fn hit(&self, r: &Ray) -> Option<Hit> {
Quad::hit(
let hit = Quad::hit(
self.p1,
self.p2,
self.p3,
@@ -67,7 +68,9 @@ impl Hittable for Quad {
self.material.clone(),
self.normal,
r,
)
);
return hit
}
fn to_uv(&self, point: &Vec3) -> Vec3 {
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.