Skip to content

Commit 5b653c7

Browse files
Peter Shirleyhollasch
authored andcommitted
fig.rand-vector: update for clarity
Figure [rand-vector], In One Weekend. Also update preceding text. Fixes #142
1 parent 975dcdc commit 5b653c7

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

books/RayTracingInOneWeekend.html

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1363,12 +1363,13 @@
13631363
the chapter.)
13641364

13651365
<div class='together'>
1366-
There are two unit radius spheres tangent to the hit point $p$ of a surface. These two spheres
1367-
have a center of $(p + N)$ and $(p - N)$, where $N$ is the normal of the surface. The sphere with a
1368-
center at $(p - N)$ is considered _inside_ the surface, whereas the sphere with center $(p + N)$ is
1369-
considered _outside_ the surface. Select the tangent unit radius sphere that is on the same side of
1370-
the surface as the ray origin. Pick a random point $s$ inside this unit radius sphere and send a
1371-
ray from the hit point $p$ to the random point $s$:
1366+
There are two unit radius spheres tangent to the hit point $p$ of a surface. These two spheres have
1367+
a center of $(p + \vec{N})$ and $(p - \vec{N})$, where $\vec{N}$ is the normal of the surface. The
1368+
sphere with a center at $(p - \vec{N})$ is considered _inside_ the surface, whereas the sphere with
1369+
center $(p + \vec{N})$ is considered _outside_ the surface. Select the tangent unit radius sphere
1370+
that is on the same side of the surface as the ray origin. Pick a random point $s$ inside this unit
1371+
radius sphere and send a ray from the hit point $p$ to the random point $s$ (this is the vector
1372+
$(s-p)$):
13721373

13731374
![Figure [rand-vector]: Generating a random diffuse bounce ray](../images/fig.rand-vector.jpg)
13741375

images/fig.rand-vector.jpg

75.1 KB
Loading

0 commit comments

Comments
 (0)