This commit is contained in:
Jeffrey Ventrella 2013-05-29 11:43:42 -07:00
parent f02e8dae23
commit ab3b0c8aa3

View file

@ -1126,11 +1126,11 @@ void Avatar::renderBody(bool lookingInMirror) {
if (lookingInMirror || _owningAgent) {
alpha = 1.0f;
}
// Always render other people, and render myself when beyond threshold distance
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);
_head.render(lookingInMirror, _cameraPosition, alpha);
}
} else if (_owningAgent || distanceToCamera > RENDER_TRANSLUCENT_BEYOND
|| b == AVATAR_JOINT_RIGHT_ELBOW