Merge branch 'blender2.7'
This commit is contained in:
@@ -3381,6 +3381,20 @@ void GeometryNode::compile(OSLCompiler& compiler)
|
|||||||
compiler.add(this, "node_geometry");
|
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 */
|
/* TextureCoordinate */
|
||||||
|
|
||||||
NODE_DEFINE(TextureCoordinateNode)
|
NODE_DEFINE(TextureCoordinateNode)
|
||||||
|
@@ -668,6 +668,7 @@ public:
|
|||||||
void attributes(Shader *shader, AttributeRequestSet *attributes);
|
void attributes(Shader *shader, AttributeRequestSet *attributes);
|
||||||
bool has_attribute_dependency() { return true; }
|
bool has_attribute_dependency() { return true; }
|
||||||
bool has_spatial_varying() { return true; }
|
bool has_spatial_varying() { return true; }
|
||||||
|
int get_group();
|
||||||
|
|
||||||
float3 normal_osl;
|
float3 normal_osl;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user