Fix Cycles ellipse area light returns zero pdf in volume segment
This commit is contained in:
parent
e378bd70ed
commit
f56488c20f
|
@ -156,7 +156,7 @@ ccl_device_noinline bool light_sample(KernelGlobals kg,
|
|||
}
|
||||
|
||||
ls->pdf *= ls->pdf_selection;
|
||||
return (ls->pdf > 0.0f);
|
||||
return in_volume_segment || (ls->pdf > 0.0f);
|
||||
}
|
||||
|
||||
/* Intersect ray with individual light. */
|
||||
|
|
Loading…
Reference in New Issue