diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2014-05-01 21:18:42 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2014-05-01 21:25:13 +0400 |
commit | c806a8ce96d93c739675f8444427be575b67a788 (patch) | |
tree | 80178fd0be9c8988ea62152fd9e4b0ae4e082234 /intern/cycles/kernel/kernel_light.h | |
parent | 95b93b5d46b7fb8b98295a1368bc44a3f63fe8c7 (diff) |
Cycles: MIS for lamps now loops over all lamps instead of picking one.
Probably will not be noticed in most scenes. This helps reduce noise when you
have multiple lamps with MIS enabled, at the cost of some performance, but from
testing some scenes this seems better.
Diffstat (limited to 'intern/cycles/kernel/kernel_light.h')
-rw-r--r-- | intern/cycles/kernel/kernel_light.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/intern/cycles/kernel/kernel_light.h b/intern/cycles/kernel/kernel_light.h index ffda44fee57..ac432d3fe04 100644 --- a/intern/cycles/kernel/kernel_light.h +++ b/intern/cycles/kernel/kernel_light.h @@ -421,7 +421,6 @@ ccl_device bool lamp_light_eval(KernelGlobals *kg, int lamp, float3 P, float3 D, /* compute pdf */ if(ls->t != FLT_MAX) ls->pdf *= lamp_light_pdf(kg, ls->Ng, -ls->D, ls->t); - ls->eval_fac *= kernel_data.integrator.inv_pdf_lights; return true; } |