Impprovide the computation of the Signed Distance Field

This commit is contained in:
Robert Osfield
2017-09-14 15:58:38 +01:00
parent 70b3a3a442
commit a12a43d352
2 changed files with 41 additions and 3 deletions

View File

@@ -684,7 +684,7 @@ void Text::computeGlyphRepresentation()
osg::Vec2 maxtc = glyph->getMaxTexCoord();
osg::Vec2 vDiff = maxtc - mintc;
float texelMargin = 4.0f;
float texelMargin = 5.0f;
float fHorizTCMargin = texelMargin / glyph->getTexture()->getTextureWidth();
float fVertTCMargin = texelMargin / glyph->getTexture()->getTextureHeight();