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:
parent
c33c3c9b99
commit
b0fcfe8ffd
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user