]> git.mxchange.org Git - flightgear.git/commitdiff
Modified Files:
authorfrohlich <frohlich>
Sun, 12 Nov 2006 17:22:02 +0000 (17:22 +0000)
committerfrohlich <frohlich>
Sun, 12 Nov 2006 17:22:02 +0000 (17:22 +0000)
src/Main/renderer.cxx: Fix some ugly triangle artefacts on the
bo105's Instrument panel.

src/Main/renderer.cxx

index 5ef05948b077aba552906ffc707518534dc425f6..57f3bdefd85baee38004c59570dafe0fb2248102 100644 (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: