Skip to content

Commit 949dec9

Browse files
committed
Fix typos "probabilty", "dot project"
Resolves RayTracing#1607
1 parent 7bf2f3c commit 949dec9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

books/RayTracingInOneWeekend.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2895,7 +2895,7 @@
28952895
glass materials) can also vary with incident viewing direction (the direction of the incoming ray).
28962896

28972897
Lambertian (diffuse) reflectance can either always scatter and attenuate light according to its
2898-
reflectance $R$, or it can sometimes scatter (with probabilty $1-R$) with no attenuation (where a
2898+
reflectance $R$, or it can sometimes scatter (with probability $1-R$) with no attenuation (where a
28992899
ray that isn't scattered is just absorbed into the material). It could also be a mixture of both
29002900
those strategies. We will choose to always scatter, so implementing Lambertian materials becomes a
29012901
simple task:
@@ -3000,8 +3000,8 @@
30003000
The reflected ray direction in red is just $\mathbf{v} + 2\mathbf{b}$. In our design, $\mathbf{n}$
30013001
is a unit vector (length one), but $\mathbf{v}$ may not be. To get the vector $\mathbf{b}$, we scale
30023002
the normal vector by the length of the projection of $\mathbf{v}$ onto $\mathbf{n}$, which is given
3003-
by the dot project $\mathbf{v} \cdot \mathbf{n}$. (If $\mathbf{n}$ were not a unit vector, we would
3004-
also need to divide this dot project by the length of $\mathbf{n}$.) Finally, because $\mathbf{v}$
3003+
by the dot product $\mathbf{v} \cdot \mathbf{n}$. (If $\mathbf{n}$ were not a unit vector, we would
3004+
also need to divide this dot product by the length of $\mathbf{n}$.) Finally, because $\mathbf{v}$
30053005
points _into_ the surface, and we want $\mathbf{b}$ to point _out_ of the surface, we need to negate
30063006
this projection length.
30073007

0 commit comments

Comments
 (0)