Cycles: fix spot lamp emitting light in two directions.

This commit is contained in:
Brecht Van Lommel
2012-06-04 19:38:10 +00:00
parent ca7197b620
commit d9589bf0dd

View File

@@ -231,7 +231,7 @@ __device void regular_light_sample(KernelGlobals *kg, int point,
float spot_angle = data2.y;
float spot_smooth = data2.z;
float eval_fac = fabsf(dot(dir, I));
float eval_fac = dot(dir, I);
if(eval_fac <= spot_angle) {
eval_fac = 0.0f;