mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 17:41:12 +02:00
Tweaking text scaling value to more closely match old text renderer
This commit is contained in:
parent
1af2b65714
commit
53b0fd409d
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ void RenderableTextEntityItem::render(RenderArgs* args) {
|
||||||
glTranslatef(-(halfDimensions.x - leftMargin), halfDimensions.y - topMargin, 0.0f);
|
glTranslatef(-(halfDimensions.x - leftMargin), halfDimensions.y - topMargin, 0.0f);
|
||||||
glm::vec4 textColor(toGlm(getTextColorX()), alpha);
|
glm::vec4 textColor(toGlm(getTextColorX()), alpha);
|
||||||
// this is a ratio determined through experimentation
|
// this is a ratio determined through experimentation
|
||||||
const float scaleFactor = 0.1f * _lineHeight;
|
const float scaleFactor = 0.08f * _lineHeight;
|
||||||
glScalef(scaleFactor, -scaleFactor, scaleFactor);
|
glScalef(scaleFactor, -scaleFactor, scaleFactor);
|
||||||
textRenderer->draw(0, 0, _text, textColor);
|
textRenderer->draw(0, 0, _text, textColor);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue