diff options
author | Brecht Van Lommel <brecht@blender.org> | 2021-11-05 22:24:13 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2021-11-05 22:24:13 +0300 |
commit | 4b56eed0f786562dfe961e23091f4f20c16a9e90 (patch) | |
tree | ff2983e623f6baad77267fcbd14828f463687988 | |
parent | f24ad274cb3002f380aa206c07ca564711bba089 (diff) |
Fix T92566: Cycles distant lights too dim in reflections
-rw-r--r-- | intern/cycles/kernel/light/light.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/kernel/light/light.h b/intern/cycles/kernel/light/light.h index 746c7747569..2e7f862a715 100644 --- a/intern/cycles/kernel/light/light.h +++ b/intern/cycles/kernel/light/light.h @@ -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; } |