mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 19:21:16 +02:00
Change display names size
This commit is contained in:
parent
c38fa46eb1
commit
d0f27f1648
1 changed files with 1 additions and 1 deletions
|
@ -689,7 +689,7 @@ Transform Avatar::calculateDisplayNameTransform(const ViewFrustum& frustum, floa
|
||||||
float windowSizeY = viewportMatrix[3] - viewportMatrix[1];
|
float windowSizeY = viewportMatrix[3] - viewportMatrix[1];
|
||||||
// TODO REMOVE ^^^
|
// TODO REMOVE ^^^
|
||||||
|
|
||||||
const float DESIRED_HIGHT_ON_SCREEN = 25; // In pixels (this is double on retinas)
|
const float DESIRED_HIGHT_ON_SCREEN = 20; // In pixels (this is double on retinas)
|
||||||
|
|
||||||
// Projected point are between -1.0f and 1.0f, hence 0.5f * windowSizeY
|
// Projected point are between -1.0f and 1.0f, hence 0.5f * windowSizeY
|
||||||
double pixelHeight = 0.5f * windowSizeY * glm::abs((p1.y / p1.w) - (p0.y / p0.w)); //
|
double pixelHeight = 0.5f * windowSizeY * glm::abs((p1.y / p1.w) - (p0.y / p0.w)); //
|
||||||
|
|
Loading…
Reference in a new issue