From: frohlich Date: Tue, 7 Nov 2006 06:40:35 +0000 (+0000) Subject: Modified Files: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=11ecbb6ca75606f291ff6da1c7e7f58c91d91fd9;p=simgear.git Modified Files: mat.cxx: Fix dark scenery problem. --- diff --git a/simgear/scene/material/mat.cxx b/simgear/scene/material/mat.cxx index b9d4fa6d..c9cd8046 100644 --- a/simgear/scene/material/mat.cxx +++ b/simgear/scene/material/mat.cxx @@ -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; }