ft (wip): textures

This commit is contained in:
2026-05-12 18:20:06 +02:00
parent 383f739808
commit 6a1e50fb7a
13 changed files with 222 additions and 6 deletions

View File

@@ -41,4 +41,9 @@ impl Hittable for Cube {
fn hit(&self, r: &Ray) -> Option<Hit> {
Hit::hit_list(&self.faces, r)
}
fn to_uv(&self, point: &Vec3) -> Vec3 {
// TODO: map to [0.1] relative to specific face
todo!()
}
}