Skip to content

Book 3, Section 6.1: Uses random_in_unit_sphere? #617

@pgetto

Description

@pgetto

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions