mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 01:24:03 +02:00
push the mouth out in front of the face
This commit is contained in:
parent
b0a8de818d
commit
089dc3669d
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue