Improved handling of text

This commit is contained in:
Robert Osfield
2014-05-27 14:14:51 +00:00
parent faced0a896
commit 6af9edf33b
2 changed files with 8 additions and 13 deletions

View File

@@ -88,6 +88,9 @@ osg::Node* Style::createText(const osg::BoundingBox& extents, const AlignmentSet
textDrawable->setText(text);
textDrawable->setPosition( osg::Vec3(extents.xMin(), extents.yMin(), extents.zMin()) );
textDrawable->setEnableDepthWrites(false);
if (ts)
{
textDrawable->setFont(ts->getFont());