From 75f518ccb935012dc4e12a701208426662091be8 Mon Sep 17 00:00:00 2001 From: Thomas Dinges Date: Sat, 8 Nov 2014 16:47:56 +0100 Subject: Cycles: Remove dead branch for Distant lamps, ls->t is always FLT_MAX here. --- intern/cycles/kernel/kernel_light.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'intern/cycles') 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) { -- cgit v1.2.3