]> git.mxchange.org Git - simgear.git/commitdiff
Modified Files:
authorfrohlich <frohlich>
Tue, 7 Nov 2006 06:40:35 +0000 (06:40 +0000)
committerfrohlich <frohlich>
Tue, 7 Nov 2006 06:40:35 +0000 (06:40 +0000)
mat.cxx: Fix dark scenery problem.

simgear/scene/material/mat.cxx

index b9d4fa6db6731f3e782452aa000523baf956f3f6..c9cd80466c0b6e329db239af9036d7757b1f2e4d 100644 (file)
@@ -287,14 +287,14 @@ SGMaterial::build_state( bool defer_tex_load )
         }
 
         osg::Material* material = new osg::Material;
-        material->setColorMode(osg::Material::DIFFUSE);
+        material->setColorMode(osg::Material::AMBIENT_AND_DIFFUSE);
         material->setAmbient(osg::Material::FRONT_AND_BACK, ambient.osg());
         material->setDiffuse(osg::Material::FRONT_AND_BACK, diffuse.osg());
         material->setSpecular(osg::Material::FRONT_AND_BACK, specular.osg());
         material->setEmission(osg::Material::FRONT_AND_BACK, emission.osg());
         material->setShininess(osg::Material::FRONT_AND_BACK, shininess );
         stateSet->setAttribute(material);
-//         stateSet->setMode(GL_COLOR_MATERIAL, osg::StateAttribute::ON);
+        stateSet->setMode(GL_COLOR_MATERIAL, osg::StateAttribute::ON);
 
         _status[i].state = stateSet;
     }