Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2013-12-31 20:30:34 +0400
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2013-12-31 20:30:34 +0400
commit6b03f92aa7bdb10cfde99bc30a7337c843bda57c (patch)
tree92bafd2a3a44aa2552ee56a836e40acacd2878e5 /intern/cycles/render/graph.h
parent9939ec06dd590fa520ab4138e011b0738a2639ea (diff)
Cycles Volume Render: optimization to avoid exporting surface attributes when
only a volume shader is used.
Diffstat (limited to 'intern/cycles/render/graph.h')
-rw-r--r--intern/cycles/render/graph.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/intern/cycles/render/graph.h b/intern/cycles/render/graph.h
index dfa737115e2..f31e2103229 100644
--- a/intern/cycles/render/graph.h
+++ b/intern/cycles/render/graph.h
@@ -29,12 +29,14 @@
CCL_NAMESPACE_BEGIN
class AttributeRequestSet;
+class Shader;
class ShaderInput;
class ShaderOutput;
class ShaderNode;
class ShaderGraph;
class SVMCompiler;
class OSLCompiler;
+class OutputNode;
/* Socket Type
*
@@ -182,7 +184,7 @@ public:
ShaderOutput *add_output(const char *name, ShaderSocketType type);
virtual ShaderNode *clone() const = 0;
- virtual void attributes(AttributeRequestSet *attributes);
+ virtual void attributes(Shader *shader, AttributeRequestSet *attributes);
virtual void compile(SVMCompiler& compiler) = 0;
virtual void compile(OSLCompiler& compiler) = 0;
@@ -238,7 +240,7 @@ public:
ShaderGraph *copy();
ShaderNode *add(ShaderNode *node);
- ShaderNode *output();
+ OutputNode *output();
void connect(ShaderOutput *from, ShaderInput *to);
void disconnect(ShaderInput *to);