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
path: root/intern
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2011-12-28 23:42:22 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2011-12-28 23:42:22 +0400
commit9d3f5ea334ca116cb3978d5ea0e440e1602cbe9d (patch)
tree491fe8d90b2e9f1c6711ba179f8a2c541c4fe79a /intern
parentc9830549eafc97f40b40de42fe43c38e512d3048 (diff)
Fix #29715: cycles and glsl normal node not working correct.
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/kernel/svm/svm_normal.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/intern/cycles/kernel/svm/svm_normal.h b/intern/cycles/kernel/svm/svm_normal.h
index 0b3f63b6d7e..bed2a8d574d 100644
--- a/intern/cycles/kernel/svm/svm_normal.h
+++ b/intern/cycles/kernel/svm/svm_normal.h
@@ -25,9 +25,9 @@ __device void svm_node_normal(KernelGlobals *kg, ShaderData *sd, float *stack, u
float3 normal = stack_load_float3(stack, in_normal_offset);
float3 direction;
- direction.x = node1.x;
- direction.y = node1.y;
- direction.z = node1.z;
+ direction.x = __int_as_float(node1.x);
+ direction.y = __int_as_float(node1.y);
+ direction.z = __int_as_float(node1.z);
direction = normalize(direction);
if (stack_valid(out_normal_offset))