[Bf-blender-cvs] [29c71b2] master: Cleanup: Remove unused light function.
Thomas Dinges
noreply at git.blender.org
Fri Oct 31 22:54:27 CET 2014
Commit: 29c71b2c097fc0433beee9e33ba552e805852550
Author: Thomas Dinges
Date: Fri Oct 31 22:54:05 2014 +0100
Branches: master
https://developer.blender.org/rB29c71b2c097fc0433beee9e33ba552e805852550
Cleanup: Remove unused light function.
===================================================================
M intern/cycles/kernel/kernel_light.h
===================================================================
diff --git a/intern/cycles/kernel/kernel_light.h b/intern/cycles/kernel/kernel_light.h
index b18f67a..659c4a1 100644
--- a/intern/cycles/kernel/kernel_light.h
+++ b/intern/cycles/kernel/kernel_light.h
@@ -680,22 +680,5 @@ ccl_device int light_select_num_samples(KernelGlobals *kg, int index)
return __float_as_int(data3.x);
}
-ccl_device int lamp_light_eval_sample(KernelGlobals *kg, float randt)
-{
- /* sample index */
- int index = light_distribution_sample(kg, randt);
-
- /* fetch light data */
- float4 l = kernel_tex_fetch(__light_distribution, index);
- int prim = __float_as_int(l.y);
-
- if(prim < 0) {
- int lamp = -prim-1;
- return lamp;
- }
- else
- return LAMP_NONE;
-}
-
CCL_NAMESPACE_END
More information about the Bf-blender-cvs
mailing list