diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2011-12-16 22:15:07 +0400 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2011-12-16 22:15:07 +0400 |
commit | 3c8ab559a5bd31fd38e9c5cf9da8505ca28f4887 (patch) | |
tree | a80f77388aca49eb8a47af0556b1dacdce26914d /intern/cycles/render/nodes.h | |
parent | ce8f64d9f92e81629facea34b7f9e18e1f6b3d0c (diff) |
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.
Diffstat (limited to 'intern/cycles/render/nodes.h')
-rw-r--r-- | intern/cycles/render/nodes.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/intern/cycles/render/nodes.h b/intern/cycles/render/nodes.h index e08651cf1eb..9d947de1af5 100644 --- a/intern/cycles/render/nodes.h +++ b/intern/cycles/render/nodes.h @@ -343,6 +343,13 @@ public: static ShaderEnum type_enum; }; +class NormalNode : public ShaderNode { +public: + SHADER_NODE_CLASS(NormalNode) + + float3 direction; +}; + class VectorMathNode : public ShaderNode { public: SHADER_NODE_CLASS(VectorMathNode) |