mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 12:33:37 +02:00
Added a factor to correct display name position for non default models
For the default avatar, the position is wrong
This commit is contained in:
parent
a6b202ccbe
commit
4fd735e28f
1 changed files with 1 additions and 1 deletions
|
@ -302,7 +302,7 @@ void Avatar::renderDisplayName() {
|
|||
glDisable(GL_LIGHTING);
|
||||
|
||||
glPushMatrix();
|
||||
glm::vec3 textPosition = getPosition() + getBodyUpDirection() * (getSkeletonHeight() + getHeadHeight());
|
||||
glm::vec3 textPosition = getPosition() + getBodyUpDirection() * ((getSkeletonHeight() + getHeadHeight()) / 1.5f);
|
||||
glTranslatef(textPosition.x, textPosition.y, textPosition.z);
|
||||
|
||||
// we need "always facing camera": we must remove the camera rotation from the stack
|
||||
|
|
Loading…
Reference in a new issue