Fix T92566: Cycles distant lights too dim in reflections

This commit is contained in:
Brecht Van Lommel 2021-11-05 20:24:13 +01:00
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
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}