Code refactor: add generic Cycles node infrastructure.

Differential Revision: https://developer.blender.org/D2016
This commit is contained in:
Brecht Van Lommel
2016-05-07 19:47:37 +02:00
parent 841d008b98
commit ec51175f1f
20 changed files with 1000 additions and 18 deletions

View File

@@ -314,12 +314,12 @@ void SVMCompiler::add_node(int a, int b, int c, int d)
svm_nodes.push_back(make_int4(a, b, c, d));
}
void SVMCompiler::add_node(NodeType type, int a, int b, int c)
void SVMCompiler::add_node(ShaderNodeType type, int a, int b, int c)
{
svm_nodes.push_back(make_int4(type, a, b, c));
}
void SVMCompiler::add_node(NodeType type, const float3& f)
void SVMCompiler::add_node(ShaderNodeType type, const float3& f)
{
svm_nodes.push_back(make_int4(type,
__float_as_int(f.x),