Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Dinges <blender@dingto.org>2014-11-08 18:47:56 +0300
committerThomas Dinges <blender@dingto.org>2014-11-08 18:47:56 +0300
commit75f518ccb935012dc4e12a701208426662091be8 (patch)
tree248fe9f207eba41d05b7484e0a6f61a06c47c126
parent83dee4a3b19a53bc467aa2f8551e6e05ceb52dc6 (diff)
Cycles: Remove dead branch for Distant lamps, ls->t is always FLT_MAX here.
-rw-r--r--intern/cycles/kernel/kernel_light.h3
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) {