Added a setRadius into the screen space LOD.

This commit is contained in:
Robert Osfield
2006-06-28 10:00:54 +00:00
parent 5acd4f3be1
commit 2cf8fd8f42

View File

@@ -218,6 +218,7 @@ osg::Node* createMovingModel(const osg::Vec3& center, float radius, osg::Geode *
osg::LOD* lod = new osg::LOD;
lod->setRangeMode(osg::LOD::PIXEL_SIZE_ON_SCREEN);
lod->setRadius(cessna->getBound().radius());
lod->addChild(geode,0.0f,100.0f);
lod->addChild(cessna,100.0f,10000.0f);