From 3c8ab559a5bd31fd38e9c5cf9da8505ca28f4887 Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Fri, 16 Dec 2011 18:15:07 +0000 Subject: 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 | 3 +++ 1 file changed, 3 insertions(+) (limited to 'intern/cycles/app') diff --git a/intern/cycles/app/cycles_xml.cpp b/intern/cycles/app/cycles_xml.cpp index 530a4ad14d8..a0282988179 100644 --- a/intern/cycles/app/cycles_xml.cpp +++ b/intern/cycles/app/cycles_xml.cpp @@ -368,6 +368,9 @@ static void xml_read_shader_graph(const XMLReadState& state, Shader *shader, pug xml_read_enum(&wood->type, WaveTextureNode::type_enum, node, "type"); snode = wood; } + else if(string_iequals(node.name(), "normal")) { + snode = new NormalNode(); + } else if(string_iequals(node.name(), "mapping")) { snode = new MappingNode(); } -- cgit v1.2.3