From f23d8f6c2005b5a30b2d09f6f18dd9fbad6437d8 Mon Sep 17 00:00:00 2001 From: ZappoMan Date: Sun, 23 Nov 2014 11:21:05 -0800 Subject: [PATCH] text sizing tweaks --- examples/lobby.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/lobby.js b/examples/lobby.js index 3f13f01e7f..9e454eccc9 100644 --- a/examples/lobby.js +++ b/examples/lobby.js @@ -18,8 +18,8 @@ var descriptionText = false; // used for formating the description text, in meters var textWidth = 4; -var textHeight = 1; -var numberOfLines = 4; +var textHeight = .5; +var numberOfLines = 2; var textMargin = 0.0625; var lineHeight = (textHeight - (2 * textMargin)) / numberOfLines; @@ -65,8 +65,8 @@ function reticlePosition() { } function textOverlayPosition() { - var TEXT_DISTANCE_OUT = 5; - var TEXT_DISTANCE_DOWN = -1; + var TEXT_DISTANCE_OUT = 6; + var TEXT_DISTANCE_DOWN = -2; return Vec3.sum(Vec3.sum(Camera.position, Vec3.multiply(Quat.getFront(Camera.orientation), TEXT_DISTANCE_OUT)), Vec3.multiply(Quat.getUp(Camera.orientation), TEXT_DISTANCE_DOWN)); }