Changed the "Cessna" text so that it is sized according to OBJECT_COORDS rather
than SCREEN_COORDS as the later was causing problems with the pixel size based LOD selection.
This commit is contained in:
parent
5f3ec7dbcb
commit
5d1b46d25f
@ -95,7 +95,7 @@ osg::Node* createMovingModel(const osg::Vec3& center, float radius)
|
||||
text->setAlignment(osgText::Text::CENTER_CENTER);
|
||||
text->setAxisAlignment(osgText::Text::SCREEN);
|
||||
text->setCharacterSize(40.0f);
|
||||
text->setCharacterSizeMode(osgText::Text::SCREEN_COORDS);
|
||||
text->setCharacterSizeMode(osgText::Text::OBJECT_COORDS);
|
||||
|
||||
osg::Geode* geode = new osg::Geode;
|
||||
geode->addDrawable(text);
|
||||
|
Loading…
Reference in New Issue
Block a user