Modified Files:
src/Main/renderer.cxx: Fix some ugly triangle artefacts on the bo105's Instrument panel.
This commit is contained in:
parent
3394d3c840
commit
16aee6ac41
1 changed files with 2 additions and 4 deletions
|
@ -196,19 +196,17 @@ public:
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
FGLight *l = static_cast<FGLight*>(globals->get_subsystem("lighting"));
|
FGLight *l = static_cast<FGLight*>(globals->get_subsystem("lighting"));
|
||||||
SGVec4f ambient(l->scene_ambient());
|
lightModel->setAmbientIntensity(l->scene_ambient().osg());
|
||||||
lightModel->setAmbientIntensity(ambient.osg());
|
|
||||||
#else
|
#else
|
||||||
lightModel->setAmbientIntensity(osg::Vec4(0, 0, 0, 1));
|
lightModel->setAmbientIntensity(osg::Vec4(0, 0, 0, 1));
|
||||||
#endif
|
#endif
|
||||||
lightModel->setTwoSided(true);
|
lightModel->setTwoSided(true);
|
||||||
|
lightModel->setLocalViewer(false);
|
||||||
|
|
||||||
if (mHighlights->getBoolValue()) {
|
if (mHighlights->getBoolValue()) {
|
||||||
lightModel->setColorControl(osg::LightModel::SEPARATE_SPECULAR_COLOR);
|
lightModel->setColorControl(osg::LightModel::SEPARATE_SPECULAR_COLOR);
|
||||||
lightModel->setLocalViewer(true);
|
|
||||||
} else {
|
} else {
|
||||||
lightModel->setColorControl(osg::LightModel::SINGLE_COLOR);
|
lightModel->setColorControl(osg::LightModel::SINGLE_COLOR);
|
||||||
lightModel->setLocalViewer(false);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Reference in a new issue