Skip to content

Commit

Permalink
Merge branch 'main' into bhata/npr_gooch
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwinbhat authored Jan 25, 2024
2 parents 1df4221 + 36be872 commit 8e67932
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/MaterialXGenShader/ShaderNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,10 @@ ShaderNodePtr ShaderNode::create(const ShaderGraph* parent, const string& name,
newNode->_classification = Classification::SHADER | Classification::SURFACE | Classification::CLOSURE;
}
}
else if (*primaryOutput->getType() == *Type::VOLUMESHADER)
{
newNode->_classification = Classification::SHADER | Classification::VOLUME | Classification::CLOSURE;
}
else if (*primaryOutput->getType() == *Type::LIGHTSHADER)
{
newNode->_classification = Classification::LIGHT | Classification::SHADER | Classification::CLOSURE;
Expand Down

0 comments on commit 8e67932

Please sign in to comment.