Skip to content

Commit 16c3989

Browse files
Trevor Blackhollasch
authored andcommitted
Fixes the incorrect color formulation. Resolves #199
1 parent bf5a145 commit 16c3989

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

books/RayTracingTheRestOfYourLife.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@
654654
If we sample using the same pdf, so $p(direction) = cos(\theta) / \pi$, the numerator and
655655
denominator cancel out and we get:
656656

657-
$$ Color = A * s(direction) $$
657+
$$ Color = A * color(direction) $$
658658

659659
This is exactly what we had in our original color() function! But we need to generalize now so we
660660
can send extra rays in important directions such as toward the lights.

0 commit comments

Comments
 (0)