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_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_volume.h')
-rw-r--r-- | intern/cycles/kernel/kernel_volume.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/kernel/kernel_volume.h b/intern/cycles/kernel/kernel_volume.h index 4ddcbec0fef..f443bb88463 100644 --- a/intern/cycles/kernel/kernel_volume.h +++ b/intern/cycles/kernel/kernel_volume.h @@ -504,7 +504,7 @@ kernel_volume_integrate_homogeneous(KernelGlobals *kg, float3 transmittance = volume_color_transmittance(coeff.sigma_t, ray->t); float3 emission = kernel_volume_emission_integrate( &coeff, closure_flag, transmittance, ray->t); - path_radiance_accum_emission(L, state, *throughput, emission); + path_radiance_accum_emission(kg, L, state, *throughput, emission); } /* modify throughput */ @@ -629,7 +629,7 @@ kernel_volume_integrate_heterogeneous_distance(KernelGlobals *kg, if (L && (closure_flag & SD_EMISSION)) { float3 emission = kernel_volume_emission_integrate( &coeff, closure_flag, transmittance, dt); - path_radiance_accum_emission(L, state, tp, emission); + path_radiance_accum_emission(kg, L, state, tp, emission); } /* modify throughput */ |