mirror of
https://github.com/blender/blender
synced 2026-09-26 16:15:47 +03:00
Fix: Cycles area light ignores some valid samples in volume segment
This commit is contained in:
parent
f5f10201ca
commit
8536575263
1 changed files with 1 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue