Page MenuHome

Returns conditioned light_tree_pdf for MIS, consistent with light_tree_sample
ClosedPublic

Authored by Weizhen Huang (weizhen) on Oct 12 2022, 6:14 PM.

Diff Detail

Repository
rB Blender
Branch
soc-2022-many-lights-sampling
Build Status
Buildable 24245
Build 24245: arc lint + arc unit

Event Timeline

Weizhen Huang (weizhen) requested review of this revision.Oct 12 2022, 6:14 PM
Weizhen Huang (weizhen) created this revision.

This implementation looks easier to understand.

intern/cycles/kernel/light/light_tree.h
620

This assumes that total_reservoir_weight is complete at this point. Which seems to be the case due to the order of traversal, where the target branch is always at stack[0] and so will be traversed last.

There should either be a comment explaining that, or we can compute pdf_reservoir at the end of the function again.

This revision is now accepted and ready to land.Oct 13 2022, 4:05 PM