diff options
author | Thomas Dinges <blender@dingto.org> | 2014-08-25 01:08:07 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2014-08-25 01:08:07 +0400 |
commit | ae31b25fb5d2561bee49933ab6ae64194c0cd404 (patch) | |
tree | 1c64fd6418ed8d42e8c7086fc41b74896ba53bc7 /intern/cycles | |
parent | a25484eefaaef6eb25e7db40b2713b0c127da038 (diff) |
Cycles: Fix wrong Volume Scattering in Branched Path integrator, when building without Decoupled Ray Marching.
The wrong throughput was used here.
Diffstat (limited to 'intern/cycles')
-rw-r--r-- | intern/cycles/kernel/kernel_path.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/kernel/kernel_path.h b/intern/cycles/kernel/kernel_path.h index 7af74a763c6..ab4b5ecd411 100644 --- a/intern/cycles/kernel/kernel_path.h +++ b/intern/cycles/kernel/kernel_path.h @@ -908,7 +908,7 @@ ccl_device float4 kernel_branched_path_integrate(KernelGlobals *kg, RNG *rng, in if(result == VOLUME_PATH_SCATTERED) { /* todo: support equiangular, MIS and all light sampling. * alternatively get decoupled ray marching working on the GPU */ - kernel_path_volume_connect_light(kg, rng, &volume_sd, throughput, &state, &L, num_samples_inv); + kernel_path_volume_connect_light(kg, rng, &volume_sd, tp, &state, &L, num_samples_inv); if(kernel_path_volume_bounce(kg, rng, &volume_sd, &tp, &ps, &L, &pray)) { kernel_path_indirect(kg, rng, pray, tp*num_samples_inv, num_samples, ps, &L); |