Skip to content

Rewrite book 1 diffuse in more straightforward way #992

@trevordblack

Description

@trevordblack

...

In think that when implementing recursive bouncing for the first time, sampling a direction uniformly is one of the first things to try.

This is actually how I would rewrite the chapter. Start with the "naive" approach, and then correct toward cosine law. We start on cos^2 today (I literally cannot remember if it's cos^3 or cos^2) because that was the outcome of the algorithm in the initial version of the book, and so we say upfront that that way of doing it was wrong. With enough time past since the initial publication of v1, it might be worth rearranging them.

Originally posted by @trevordblack in #924 (comment)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions