Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@blender.org>2021-11-05 22:24:13 +0300
committerBrecht Van Lommel <brecht@blender.org>2021-11-05 22:24:13 +0300
commit4b56eed0f786562dfe961e23091f4f20c16a9e90 (patch)
treeff2983e623f6baad77267fcbd14828f463687988 /intern
parentf24ad274cb3002f380aa206c07ca564711bba089 (diff)
Fix T92566: Cycles distant lights too dim in reflections
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/kernel/light/light.h2
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;
}