From 39499e4a9269e36cdd71c69387556c7cfb96ed52 Mon Sep 17 00:00:00 2001 From: Jeffrey Ventrella Date: Wed, 29 May 2013 11:26:06 -0700 Subject: [PATCH] fix to head transparency --- interface/src/Avatar.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/interface/src/Avatar.cpp b/interface/src/Avatar.cpp index 403918c830..4118debd14 100644 --- a/interface/src/Avatar.cpp +++ b/interface/src/Avatar.cpp @@ -1123,6 +1123,10 @@ void Avatar::renderBody(bool lookingInMirror) { float alpha = glm::clamp((distanceToCamera - RENDER_TRANSLUCENT_BEYOND) / (RENDER_OPAQUE_BEYOND - RENDER_TRANSLUCENT_BEYOND), 0.f, 1.f); + 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 case if (lookingInMirror || _owningAgent || distanceToCamera > RENDER_OPAQUE_BEYOND * 0.5) {