Skip to content

Commit f61f152

Browse files
authored
Merge pull request #638 from RayTracing/book2-img-updates
Book2 img updates
2 parents d5d4bfe + a1815a9 commit f61f152

14 files changed

+249
-58
lines changed

books/RayTracingTheNextWeek.html

Lines changed: 229 additions & 42 deletions
Large diffs are not rendered by default.

images/img-2.01-bouncing-spheres.jpg

-26.8 KB
Binary file not shown.

images/img-2.01-bouncing-spheres.png

122 KB
Loading

images/img-2.02-checker-ground.jpg

-38.3 KB
Binary file not shown.

images/img-2.02-checker-ground.png

141 KB
Loading

images/img-2.03-checker-spheres.jpg

-46.9 KB
Binary file not shown.

images/img-2.03-checker-spheres.png

167 KB
Loading

images/img-2.07-hash-random.jpg

-46.4 KB
Binary file not shown.

images/img-2.07-hash-random.png

129 KB
Loading

src/TheNextWeek/hittable.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,6 @@
1818

1919
class material;
2020

21-
void get_sphere_uv(const point3& p, double& u, double& v) {
22-
auto phi = atan2(p.z(), p.x());
23-
auto theta = asin(p.y());
24-
u = 1-(phi + pi) / (2*pi);
25-
v = (theta + pi/2) / pi;
26-
}
27-
28-
2921
struct hit_record {
3022
point3 p;
3123
vec3 normal;

0 commit comments

Comments
 (0)