diff options
author | Lukas Stockner <lukasstockner97> | 2019-12-08 23:19:37 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-12-12 15:04:43 +0300 |
commit | 3437c9c3bf3d16a5ae070226d927a3a329239c8c (patch) | |
tree | f7ad2b332a4200caa8d57ac85199ac760fc6bfeb /intern/cycles/kernel/kernel_path_volume.h | |
parent | 85b7d397f7620b57ce4014ee7b0119eef64578d9 (diff) |
Cycles: perform clamping per light contribution instead of whole path
With upcoming light group passes, for them to sum up correctly to the combined
pass the clamping must be more fine grained.
This also has the advantage that if one light is particularly noisy, it does
not diminish the contribution from other lights which do not need as much
clamping.
Clamp values on existing scenes will need to be tweaked to get similar results,
there is no automatic conversion possible which would give the same results as
before.
Implemented by Lukas, with tweaks by Brecht.
Part of D4837
Diffstat (limited to 'intern/cycles/kernel/kernel_path_volume.h')
-rw-r--r-- | intern/cycles/kernel/kernel_path_volume.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/kernel/kernel_path_volume.h b/intern/cycles/kernel/kernel_path_volume.h index db10629ee9f..a787910e65c 100644 --- a/intern/cycles/kernel/kernel_path_volume.h +++ b/intern/cycles/kernel/kernel_path_volume.h @@ -57,7 +57,7 @@ ccl_device_inline void kernel_path_volume_connect_light(KernelGlobals *kg, if (has_emission && !blocked) { /* accumulate */ - path_radiance_accum_light(L, state, throughput, &L_light, shadow, 1.0f, is_lamp); + path_radiance_accum_light(kg, L, state, throughput, &L_light, shadow, 1.0f, is_lamp); } # endif /* __EMISSION__ */ } @@ -247,7 +247,7 @@ ccl_device void kernel_branched_path_volume_connect_light(KernelGlobals *kg, if (has_emission && !blocked) { /* accumulate */ path_radiance_accum_light( - L, state, tp * num_samples_inv, &L_light, shadow, num_samples_inv, is_lamp); + kg, L, state, tp * num_samples_inv, &L_light, shadow, num_samples_inv, is_lamp); } } } |