diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-12-28 23:42:22 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-12-28 23:42:22 +0400 |
commit | 9d3f5ea334ca116cb3978d5ea0e440e1602cbe9d (patch) | |
tree | 491fe8d90b2e9f1c6711ba179f8a2c541c4fe79a /intern/cycles | |
parent | c9830549eafc97f40b40de42fe43c38e512d3048 (diff) |
Fix #29715: cycles and glsl normal node not working correct.
Diffstat (limited to 'intern/cycles')
-rw-r--r-- | intern/cycles/kernel/svm/svm_normal.h | 6 |
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)) |