From 089dc3669d80d3dd11b7ada6cc6ed8376e8d5c17 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Wed, 29 May 2013 16:37:40 -0700 Subject: [PATCH] push the mouth out in front of the face --- interface/src/Head.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/interface/src/Head.cpp b/interface/src/Head.cpp index 6f7f330010..65d6c71860 100644 --- a/interface/src/Head.cpp +++ b/interface/src/Head.cpp @@ -354,7 +354,9 @@ void Head::renderMouth() { glm::vec3 rightBottom = _mouthPosition + r * 0.4f - u * 1.0f + f * 0.7f; // constrain all mouth vertices to a sphere slightly larger than the head... - float constrainedRadius = _scale + 0.001f; + const float MOUTH_OFFSET_OFF_FACE = 0.003f; + + float constrainedRadius = _scale + MOUTH_OFFSET_OFF_FACE; middle = _position + glm::normalize(middle - _position) * constrainedRadius; leftCorner = _position + glm::normalize(leftCorner - _position) * constrainedRadius; rightCorner = _position + glm::normalize(rightCorner - _position) * constrainedRadius;