+ extend Inventor builder to support material nodes

This commit is contained in:
wmayer
2015-12-16 16:09:31 +01:00
parent ae78037ae7
commit 21e44f274b
2 changed files with 40 additions and 0 deletions

View File

@@ -393,6 +393,27 @@ void InventorBuilder::addMaterial(float color_r,float color_g,float color_b)
result << Base::blanks(indent) << "} " << std::endl;
}
void InventorBuilder::beginMaterial()
{
result << Base::blanks(indent) << "Material { " << std::endl;
indent +=2;
result << Base::blanks(indent) << "diffuseColor [" << std::endl;
indent +=2;
}
void InventorBuilder::endMaterial()
{
indent -=2;
result << Base::blanks(indent) << "]" << std::endl;
indent -=2;
result << Base::blanks(indent) << "}" << std::endl;
}
void InventorBuilder::addColor(float color_r,float color_g,float color_b)
{
result << color_r << " " << color_g << " " << color_b << std::endl;
}
void InventorBuilder::addMaterialBinding(const char* bind)
{
result << Base::blanks(indent) << "MaterialBinding { value "