- shininess is in the rage 0..128

- restore fg/plib compatibility (there is/was no <shininess> group)
  (we may want to change that in the (near?) future, though)
This commit is contained in:
mfranz
2008-12-21 15:01:11 +00:00
parent c044d711ef
commit 5c44cb0f01

View File

@@ -256,7 +256,7 @@ public:
_specular(configNode->getChild("specular"), modelRoot),
_emission(configNode->getChild("emission"), modelRoot),
_shininess("shininess", "shininess-prop",
configNode->getChild("shininess"), modelRoot),
configNode/*->getChild("shininess")*/, modelRoot),
_transparency("alpha", "alpha-prop",
configNode->getChild("transparency"), modelRoot),
_texturePathList(texturePathList)
@@ -269,6 +269,7 @@ public:
node = configNode->getChild("texture-prop");
if (node)
_textureProp = modelRoot->getNode(node->getStringValue(), true);
_shininess.max = 128;
}
virtual void operator()(osg::Node* node, osg::NodeVisitor* nv)