1
0
Fork 0

Modified Files:

src/Main/renderer.cxx: Fix some ugly triangle artefacts on the
	bo105's Instrument panel.
This commit is contained in:
frohlich 2006-11-12 17:22:02 +00:00
parent 3394d3c840
commit 16aee6ac41

View file

@ -196,19 +196,17 @@ public:
#if 0
FGLight *l = static_cast<FGLight*>(globals->get_subsystem("lighting"));
SGVec4f ambient(l->scene_ambient());
lightModel->setAmbientIntensity(ambient.osg());
lightModel->setAmbientIntensity(l->scene_ambient().osg());
#else
lightModel->setAmbientIntensity(osg::Vec4(0, 0, 0, 1));
#endif
lightModel->setTwoSided(true);
lightModel->setLocalViewer(false);
if (mHighlights->getBoolValue()) {
lightModel->setColorControl(osg::LightModel::SEPARATE_SPECULAR_COLOR);
lightModel->setLocalViewer(true);
} else {
lightModel->setColorControl(osg::LightModel::SINGLE_COLOR);
lightModel->setLocalViewer(false);
}
}
private: