diff options
author | Thomas Dinges <blender@dingto.org> | 2014-11-08 18:47:56 +0300 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2014-11-08 18:47:56 +0300 |
commit | 75f518ccb935012dc4e12a701208426662091be8 (patch) | |
tree | 248fe9f207eba41d05b7484e0a6f61a06c47c126 /intern/cycles/kernel/kernel_light.h | |
parent | 83dee4a3b19a53bc467aa2f8551e6e05ceb52dc6 (diff) |
Cycles: Remove dead branch for Distant lamps, ls->t is always FLT_MAX here.
Diffstat (limited to 'intern/cycles/kernel/kernel_light.h')
-rw-r--r-- | intern/cycles/kernel/kernel_light.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/intern/cycles/kernel/kernel_light.h b/intern/cycles/kernel/kernel_light.h index 7615dc65ac8..f8d6d4117f8 100644 --- a/intern/cycles/kernel/kernel_light.h +++ b/intern/cycles/kernel/kernel_light.h @@ -488,9 +488,6 @@ ccl_device bool lamp_light_eval(KernelGlobals *kg, int lamp, float3 P, float3 D, /* compute pdf */ float invarea = data1.w; ls->pdf = invarea/(costheta*costheta*costheta); - if(ls->t != FLT_MAX) - ls->pdf *= lamp_light_pdf(kg, ls->Ng, -ls->D, ls->t); - ls->eval_fac = ls->pdf; } else if(type == LIGHT_POINT || type == LIGHT_SPOT) { |