Fix: Cycles area light ignores some valid samples in volume segment

This commit is contained in:
Weizhen Huang 2024-03-15 13:00:23 +01:00
parent f5f10201ca
commit 8536575263
1 changed files with 1 additions and 1 deletions

View File

@ -311,7 +311,7 @@ ccl_device_inline bool area_light_eval(const ccl_global KernelLight *klight,
ls->pdf *= light_pdf_area_to_solid_angle(Ng, -ls->D, ls->t);
}
return ls->eval_fac > 0;
return in_volume_segment || ls->eval_fac > 0;
}
template<bool in_volume_segment>