-
Notifications
You must be signed in to change notification settings - Fork 946
Closed
Description
The "Cornell box, refactored" image seems to be based on an older version of the Lambertian scatter() function which uses the random_in_unit_sphere function to generate the direction for the scatter ray.
The version of scatter() which uses random_unit_vector (as in the code at the end of Book 2), generates the "same" image as the "Cornell box, with different sampling strategy" image.
So, the conclusion of section 6.2 in book 3 is a little confusing. I expect most will be using the random_unit_vector() function and will see the "same" image after the changes to prepare for importance sampling.