Skip to content

Commit 5ba445e

Browse files
authored
Merge pull request RayTracing#1187 from RayTracing/improve-lambertian-description
Tweak Lambertian reflection description
2 parents e7498df + fa7d784 commit 5ba445e

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

alpha/books/RayTracingInOneWeekend.html

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2450,16 +2450,17 @@
24502450

24512451
True Lambertian Reflection
24522452
---------------------------
2453-
Using a diffuse model that scatters vectors evenly about the hemisphere produces a nice and soft
2454-
diffuse model, but we can definitely do better. A more accurate representation of real diffuse
2455-
objects is the _Lambertian_ distribution, which has a scattering distribution that is propertional
2456-
to $\cos (\phi)$, where $\phi$ is the angle from the normal. This means that a ray is most likely to
2457-
scatter toward the normal and decreases in likelihood as the direction becomes more tangential. This
2458-
distribution is notably no longer uniform, but the _Lambertian_ distribution does a better job of
2459-
modeling objects in the real world than our previous uniform scattering. We can create this
2460-
distribution by picking random points on the surface of the unit sphere, and then offsetting them
2461-
along the surface normal.
2462-
2453+
Scattering reflected rays evenly about the hemisphere produces a nice soft diffuse model, but we can
2454+
definitely do better.
2455+
A more accurate representation of real diffuse objects is the _Lambertian_ distribution.
2456+
This distribution scatters reflected rays in a manner that is proportional to $\cos (\phi)$, where
2457+
$\phi$ is the angle between the reflected ray and the surface normal.
2458+
This means that a reflected ray is most likely to scatter in a direction near the surface normal,
2459+
and less likely to scatter in directions away from the normal.
2460+
This non-uniform Lambertian distribution does a better job of modeling material reflection in the
2461+
real world than our previous uniform scattering.
2462+
2463+
We can create this distribution by adding a random unit vector to the normal vector.
24632464
At the point of intersection on a surface there is the hit point, $\mathbf{p}$, and there is the
24642465
normal of the surface, $\mathbf{n}$. At the point of intersection, this surface has exactly two
24652466
sides, so there can only be two unique unit spheres tangent to any intersection point (one

0 commit comments

Comments
 (0)