Cycles Volume Render: optimization to avoid exporting surface attributes when

only a volume shader is used.
This commit is contained in:
Brecht Van Lommel
2013-12-31 17:30:34 +01:00
parent 9939ec06dd
commit 6b03f92aa7
7 changed files with 88 additions and 63 deletions

View File

@@ -116,7 +116,7 @@ ShaderOutput *ShaderNode::add_output(const char *name, ShaderSocketType type)
return output;
}
void ShaderNode::attributes(AttributeRequestSet *attributes)
void ShaderNode::attributes(Shader *shader, AttributeRequestSet *attributes)
{
foreach(ShaderInput *input, inputs) {
if(!input->link) {
@@ -151,9 +151,9 @@ ShaderNode *ShaderGraph::add(ShaderNode *node)
return node;
}
ShaderNode *ShaderGraph::output()
OutputNode *ShaderGraph::output()
{
return nodes.front();
return (OutputNode*)nodes.front();
}
ShaderGraph *ShaderGraph::copy()