From ca8c78162d524d7182edce8fc94ba581ec2cc91a Mon Sep 17 00:00:00 2001 From: Philip Rosedale Date: Wed, 29 May 2013 10:46:10 -0700 Subject: [PATCH] one line fix for translucent head --- interface/src/Avatar.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/interface/src/Avatar.cpp b/interface/src/Avatar.cpp index bf6238779c..51a197f7af 100644 --- a/interface/src/Avatar.cpp +++ b/interface/src/Avatar.cpp @@ -1158,9 +1158,9 @@ void Avatar::renderBody(bool lookingInMirror) { for (int b = 0; b < NUM_AVATAR_JOINTS; b++) { float distanceToCamera = glm::length(_cameraPosition - _joint[b].position); // Always render other people, and render myself when beyond threshold distance - if (b == AVATAR_JOINT_HEAD_BASE) { // the head is rendered as a special case - if (lookingInMirror || _owningAgent || distanceToCamera > RENDER_OPAQUE_BEYOND) { - _head.render(lookingInMirror, _cameraPosition); + if (b == AVATAR_JOINT_HEAD_BASE) { // the head is rendered as a special + if (lookingInMirror || _owningAgent || distanceToCamera > RENDER_OPAQUE_BEYOND * 0.5) { + _head.render(lookingInMirror, _cameraPosition, 1.f); } } else if (_owningAgent || distanceToCamera > RENDER_TRANSLUCENT_BEYOND || b == AVATAR_JOINT_RIGHT_ELBOW