diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2011-12-17 00:35:06 +0400 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2011-12-17 00:35:06 +0400 |
commit | 2a6fdbcccdb285664d921d59f66f96d0345124de (patch) | |
tree | 3d7b8d41a05318d43821efe43548ac8df5162d78 /intern/cycles/app/cycles_xml.cpp | |
parent | 3311164b24da61f2967f96d0ee27508a7e2e0267 (diff) |
Cycles Gamma Node
Node specially useful for Texture correction.
This is also a nice example of a simple node made from scratch in case someone wants to create their custom nodes.
Review by Brecht.
Diffstat (limited to 'intern/cycles/app/cycles_xml.cpp')
-rw-r--r-- | intern/cycles/app/cycles_xml.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/intern/cycles/app/cycles_xml.cpp b/intern/cycles/app/cycles_xml.cpp index a0282988179..f5cc01cd062 100644 --- a/intern/cycles/app/cycles_xml.cpp +++ b/intern/cycles/app/cycles_xml.cpp @@ -446,6 +446,9 @@ static void xml_read_shader_graph(const XMLReadState& state, Shader *shader, pug xml_read_enum(&mix->type, MixNode::type_enum, node, "type"); snode = mix; } + else if(string_iequals(node.name(), "gamma")) { + snode = new GammaNode(); + } else if(string_iequals(node.name(), "combine_rgb")) { snode = new CombineRGBNode(); } |