File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 13631363the 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
You can’t perform that action at this time.
0 commit comments