added parser, nodes, Scene-load support for transparency in materials
git-svn-id: svn://anubis/fart/trunk@186 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
1 parent
f9cf1381a6
commit
b50c4de1bc
4 files changed
+15
No files matched your search
@@ -250,6 +250,10 @@ refptr<Material> Scene::processMaterial(refptr<Node> node)
|
||||
{
|
||||
material->setShininess((*it)->getNumber());
|
||||
}
|
||||
else if ( typeid(**it) == typeid(TransparencyNode) )
|
||||
{
|
||||
material->setTransparency((*it)->getNumber());
|
||||
}
|
||||
}
|
||||
|
||||
return material;
|
||||
|
||||
Reference in new issue
Block a user