Updates for fade text to work properly, but only in perspetive views at present.

This commit is contained in:
Robert Osfield
2006-09-20 10:36:21 +00:00
parent 5cab53941f
commit cc202c1b6d
3 changed files with 21 additions and 40 deletions

View File

@@ -101,7 +101,7 @@ osg::Node* createFadeText(osg::EllipsoidModel* ellipsoid)
osg::Geode* geode = new osg::Geode;
osgText::FadeText* text = new osgText::FadeText;
text->setText("This is a test");
text->setText("One");
text->setFont("fonts/arial.ttf");
text->setPosition(position);
text->setCharacterSize(300000.0f);
@@ -118,7 +118,7 @@ osg::Node* createFadeText(osg::EllipsoidModel* ellipsoid)
osg::Geode* geode = new osg::Geode;
osgText::FadeText* text = new osgText::FadeText;
text->setText("This is a test");
text->setText("Two");
text->setFont("fonts/arial.ttf");
text->setPosition(position);
text->setCharacterSize(300000.0f);