diff options
author | Thomas Dinges <blender@dingto.org> | 2014-08-14 18:09:40 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2014-08-14 18:09:40 +0400 |
commit | 5a74fe63d0a3f86e61c162ee9a33040aa63f0020 (patch) | |
tree | d72eee5a5b33154014df76c528543c18e86b4000 /intern/cycles/kernel/kernel_path_volume.h | |
parent | 6e5d188d17f2a220cee7871e5ebb0bb53cf546fb (diff) |
Cycles: Avoid intermediate function when we sample all lamps.
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 ea90a497d9c..5e47a3ea6ac 100644 --- a/intern/cycles/kernel/kernel_path_volume.h +++ b/intern/cycles/kernel/kernel_path_volume.h @@ -134,7 +134,7 @@ ccl_device void kernel_branched_path_volume_connect_light(KernelGlobals *kg, RNG path_branched_rng_2D(kg, &lamp_rng, state, j, num_samples, PRNG_LIGHT_U, &light_u, &light_v); LightSample ls; - light_select(kg, i, light_u, light_v, ray->P, &ls); + lamp_light_sample(kg, i, light_u, light_v, ray->P, &ls); float3 tp = throughput; @@ -149,7 +149,7 @@ ccl_device void kernel_branched_path_volume_connect_light(KernelGlobals *kg, RNG continue; /* todo: split up light_sample so we don't have to call it again with new position */ - light_select(kg, i, light_u, light_v, sd->P, &ls); + lamp_light_sample(kg, i, light_u, light_v, sd->P, &ls); if(ls.pdf == 0.0f) continue; |