diff options
Diffstat (limited to 'intern/cycles/kernel/kernel_light.h')
-rw-r--r-- | intern/cycles/kernel/kernel_light.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/intern/cycles/kernel/kernel_light.h b/intern/cycles/kernel/kernel_light.h index cd9557bd0bf..e9e7fbd4ca1 100644 --- a/intern/cycles/kernel/kernel_light.h +++ b/intern/cycles/kernel/kernel_light.h @@ -59,6 +59,7 @@ __device float3 area_light_sample(float3 axisu, float3 axisv, float randu, float return axisu*randu + axisv*randv; } +#ifdef __BACKGROUND_MIS__ __device float3 background_light_sample(KernelGlobals *kg, float randu, float randv, float *pdf) { /* for the following, the CDF values are actually a pair of floats, with the @@ -165,6 +166,7 @@ __device float background_light_pdf(KernelGlobals *kg, float3 direction) return pdf * kernel_data.integrator.pdf_lights; } +#endif __device void regular_light_sample(KernelGlobals *kg, int point, float randu, float randv, float3 P, LightSample *ls, float *pdf) |