Fix Cycles ellipse area light returns zero pdf in volume segment

This commit is contained in:
Weizhen Huang 2022-12-12 21:38:23 +01:00
parent e378bd70ed
commit f56488c20f
1 changed files with 1 additions and 1 deletions

View File

@ -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. */