1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

LP-29 disable lighting when a map is used

This commit is contained in:
Philippe Renon 2015-11-03 22:53:24 +01:00
parent c33c3c9b99
commit b0fcfe8ffd

View File

@ -204,6 +204,10 @@ public:
cullCallback = new osgEarth::Util::AutoClipPlaneCullCallback(mapNode);
// view->getCamera()->addCullCallback(cullCallback);
mapNode->addCullCallback(cullCallback);
// remove light to prevent unnecessary state changes in SceneView
// scene will get light from sky
view->setLightingMode(osg::View::NO_LIGHT);
}
view->setSceneData(node);