]> git.mxchange.org Git - simgear.git/commitdiff
- shininess is in the rage 0..128
authormfranz <mfranz>
Sun, 21 Dec 2008 15:01:11 +0000 (15:01 +0000)
committermfranz <mfranz>
Sun, 21 Dec 2008 15:01:11 +0000 (15:01 +0000)
- restore fg/plib compatibility (there is/was no <shininess> group)
  (we may want to change that in the (near?) future, though)

simgear/scene/model/SGMaterialAnimation.cxx

index a5b4c693cfc3147b528e0f32e6751c81d4b1bdda..def3681fff5b8ae3488fb8b1f4068b684223e341 100644 (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)