Fix Cycles area light using MIS when the spread is zero #118584

Merged
Weizhen Huang merged 1 commits from weizhen/blender:fix-area-light-mis into main 2024-02-22 17:10:57 +01:00

1 Commits

Author SHA1 Message Date
Weizhen Huang 3ab2064220 Fix area light using MIS when the spread is zero
area light with zero spread was introduced in bf18032977. Such paths can
only be sampled with NEE, so MIS should not be used.
This fixes the discrepancy when Direct Light Sampling is set to MIS or NEE.
2024-02-22 17:08:50 +01:00