Fix T92566: Cycles distant lights too dim in reflections
This commit is contained in:
parent
f24ad274cb
commit
4b56eed0f7
Notes:
blender-bot
2023-02-14 09:03:55 +01:00
Referenced by issue #92566, Reflections from distant light are too dim in Cycles-X
|
@ -353,8 +353,8 @@ ccl_device bool light_sample_from_distant_ray(KernelGlobals kg,
|
|||
/* compute pdf */
|
||||
float invarea = klight->distant.invarea;
|
||||
ls->pdf = invarea / (costheta * costheta * costheta);
|
||||
ls->pdf *= kernel_data.integrator.pdf_lights;
|
||||
ls->eval_fac = ls->pdf;
|
||||
ls->pdf *= kernel_data.integrator.pdf_lights;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue