forked from bartvdbraak/blender
Merge branch 'blender2.7'
This commit is contained in:
commit
687e4b42d5
@ -3381,6 +3381,20 @@ void GeometryNode::compile(OSLCompiler& compiler)
|
||||
compiler.add(this, "node_geometry");
|
||||
}
|
||||
|
||||
int GeometryNode::get_group()
|
||||
{
|
||||
ShaderOutput *out;
|
||||
int result = ShaderNode::get_group();
|
||||
|
||||
/* Backfacing uses NODE_LIGHT_PATH */
|
||||
out = output("Backfacing");
|
||||
if (!out->links.empty()) {
|
||||
result = max(result, NODE_GROUP_LEVEL_1);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
/* TextureCoordinate */
|
||||
|
||||
NODE_DEFINE(TextureCoordinateNode)
|
||||
|
@ -668,6 +668,7 @@ public:
|
||||
void attributes(Shader *shader, AttributeRequestSet *attributes);
|
||||
bool has_attribute_dependency() { return true; }
|
||||
bool has_spatial_varying() { return true; }
|
||||
int get_group();
|
||||
|
||||
float3 normal_osl;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user