Merge branch 'blender2.7'

This commit is contained in:
Jeroen Bakker 2019-03-14 09:31:20 +01:00
commit 687e4b42d5
2 changed files with 15 additions and 0 deletions

View File

@ -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)

View File

@ -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;
};