Normal Node - Cycles
authorDalai Felinto <dfelinto@gmail.com>
Fri, 16 Dec 2011 18:15:07 +0000 (18:15 +0000)
committerDalai Felinto <dfelinto@gmail.com>
Fri, 16 Dec 2011 18:15:07 +0000 (18:15 +0000)
commit3c8ab559a5bd31fd38e9c5cf9da8505ca28f4887
treea80f77388aca49eb8a47af0556b1dacdce26914d
parentce8f64d9f92e81629facea34b7f9e18e1f6b3d0c
Normal Node - Cycles
reviewed by Brecht, with help from Lukas.

Note: dot is reversed compared to Blender.
In Blender Normals point outside, while in Cycles they point inside.
If you use your own custom vector with the Normal Node you will see a difference.
If you feed it with object normals it should work just as good.
intern/cycles/app/cycles_xml.cpp
intern/cycles/blender/blender_shader.cpp
intern/cycles/kernel/CMakeLists.txt
intern/cycles/kernel/osl/nodes/CMakeLists.txt
intern/cycles/kernel/osl/nodes/node_normal.osl [new file with mode: 0644]
intern/cycles/kernel/svm/svm.h
intern/cycles/kernel/svm/svm_normal.h [new file with mode: 0644]
intern/cycles/kernel/svm/svm_types.h
intern/cycles/render/nodes.cpp
intern/cycles/render/nodes.h
source/blender/nodes/shader/nodes/node_shader_normal.c