mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-06 00:47:03 +02:00
Merge branch 'master' of https://github.com/highfidelity/hifi
This commit is contained in:
commit
721047234c
1 changed files with 3 additions and 3 deletions
|
@ -412,10 +412,10 @@ void Avatar::renderDisplayName() {
|
||||||
glGetIntegerv(GL_VIEWPORT, viewportMatrix);
|
glGetIntegerv(GL_VIEWPORT, viewportMatrix);
|
||||||
GLdouble result0[3], result1[3];
|
GLdouble result0[3], result1[3];
|
||||||
|
|
||||||
glm::dvec3 upVector(modelViewMatrix[1]);
|
// The up vector must be relative to the rotation current rotation matrix:
|
||||||
|
// we set the identity
|
||||||
glm::dvec3 testPoint0 = glm::dvec3(textPosition);
|
glm::dvec3 testPoint0 = glm::dvec3(textPosition);
|
||||||
glm::dvec3 testPoint1 = glm::dvec3(textPosition) + upVector;
|
glm::dvec3 testPoint1 = glm::dvec3(textPosition) + glm::dvec3(IDENTITY_UP);
|
||||||
|
|
||||||
bool success;
|
bool success;
|
||||||
success = gluProject(testPoint0.x, testPoint0.y, testPoint0.z,
|
success = gluProject(testPoint0.x, testPoint0.y, testPoint0.z,
|
||||||
|
|
Loading…
Reference in a new issue