Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2012-06-04 23:38:10 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2012-06-04 23:38:10 +0400
commitd9589bf0dd7a5bbaa0560704c8fbf1b11ec0166d (patch)
treee172bf2773c1e675b36176548125d12a71bc58ef /intern/cycles
parentca7197b6209b82af4b87f851bf5d6becdb7625b2 (diff)
Cycles: fix spot lamp emitting light in two directions.
Diffstat (limited to 'intern/cycles')
-rw-r--r--intern/cycles/kernel/kernel_light.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/kernel/kernel_light.h b/intern/cycles/kernel/kernel_light.h
index 76552400f9c..a056cd71bb1 100644
--- a/intern/cycles/kernel/kernel_light.h
+++ b/intern/cycles/kernel/kernel_light.h
@@ -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;