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_light.h | |
parent | 6e5d188d17f2a220cee7871e5ebb0bb53cf546fb (diff) |
Cycles: Avoid intermediate function when we sample all lamps.
Diffstat (limited to 'intern/cycles/kernel/kernel_light.h')
-rw-r--r-- | intern/cycles/kernel/kernel_light.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/intern/cycles/kernel/kernel_light.h b/intern/cycles/kernel/kernel_light.h index 3832631e02d..bf314f4c02a 100644 --- a/intern/cycles/kernel/kernel_light.h +++ b/intern/cycles/kernel/kernel_light.h @@ -546,11 +546,6 @@ ccl_device int light_select_num_samples(KernelGlobals *kg, int index) return __float_as_int(data3.x); } -ccl_device void light_select(KernelGlobals *kg, int index, float randu, float randv, float3 P, LightSample *ls) -{ - lamp_light_sample(kg, index, randu, randv, P, ls); -} - ccl_device int lamp_light_eval_sample(KernelGlobals *kg, float randt) { /* sample index */ |