Cycles: Fix some direct lighting leaking into indirect-only bakes #108955

Merged
Lukas Stockner merged 1 commits from LukasStockner/blender:fix-indirect-baking-mis into main 2023-06-16 03:03:31 +02:00

1 Commits

Author SHA1 Message Date
Lukas Stockner 536b68d332 Cycles: Fix some direct lighting leaking into indirect-only bakes
When baking only indirect lighting, light sampling is skipped at the
first bounce. However, light evaluation is still done, so depending
on how the MIS weights end up more or less of the direct lighting
still ends up in the bake.

This is most noticeable with background lighting, but can also be
reproduced with e.g. point lights with a large radius.
2023-06-14 03:17:17 +02:00