From: mfranz Date: Sun, 21 Dec 2008 15:01:11 +0000 (+0000) Subject: - shininess is in the rage 0..128 X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5c44cb0f01ed6307b9e1b3d0e179e8aa0e41fcba;p=simgear.git - shininess is in the rage 0..128 - restore fg/plib compatibility (there is/was no group) (we may want to change that in the (near?) future, though) --- diff --git a/simgear/scene/model/SGMaterialAnimation.cxx b/simgear/scene/model/SGMaterialAnimation.cxx index a5b4c693..def3681f 100644 --- a/simgear/scene/model/SGMaterialAnimation.cxx +++ b/simgear/scene/model/SGMaterialAnimation.cxx @@ -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)