From 58a290234b0719ce48854e2f6744575b353bf7d3 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Fri, 7 Jun 2013 18:59:23 +0000 Subject: Cycles: ray visibility options now work for lamps and mesh lights, with and without multiple importance sampling, so you can disable them for diffuse/glossy/transmission. The Light Path node here is still weak and does not give this info. To make that work we'd need to evaluate the shader multiple times which is slow and we can't detect well enough when it is actually needed. --- intern/cycles/kernel/kernel_accumulate.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'intern/cycles/kernel/kernel_accumulate.h') diff --git a/intern/cycles/kernel/kernel_accumulate.h b/intern/cycles/kernel/kernel_accumulate.h index 557990d7220..e6307f23b32 100644 --- a/intern/cycles/kernel/kernel_accumulate.h +++ b/intern/cycles/kernel/kernel_accumulate.h @@ -232,12 +232,9 @@ __device_inline void path_radiance_accum_light(PathRadiance *L, float3 throughpu L->direct_transmission += throughput*bsdf_eval->transmission*shadow; if(is_lamp) { - float3 sum = throughput*(bsdf_eval->diffuse + bsdf_eval->glossy + bsdf_eval->transmission); - L->shadow.x += shadow.x*shadow_fac; L->shadow.y += shadow.y*shadow_fac; L->shadow.z += shadow.z*shadow_fac; - L->shadow.w += average(sum); } } else { -- cgit v1.2.3