resolved local state conflict
This commit is contained in:
1 parent
4db5cbbad2
commit
83e3f2e41b
8 files changed
+9
-9
No files matched your search
@@ -61,7 +61,7 @@ impl Hittable for Circle {
|
||||
|
||||
fn to_uv(&self, point: &Vec3) -> Vec3 {
|
||||
let p = *point - self.center;
|
||||
// TODO: add rotated texture support
|
||||
// TODO (low priority): add rotated texture support
|
||||
Vec3::new(
|
||||
0.5 + p.y().atan2(*p.x()) / (2. * PI),
|
||||
1. - (p.z() / self.radius).acos() / PI,
|
||||
|
||||