mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 01:56:54 +02:00
fix to head transparency
This commit is contained in:
parent
31ff768363
commit
39499e4a92
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
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
|
// 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 (b == AVATAR_JOINT_HEAD_BASE) { // the head is rendered as a special case
|
||||||
if (lookingInMirror || _owningAgent || distanceToCamera > RENDER_OPAQUE_BEYOND * 0.5) {
|
if (lookingInMirror || _owningAgent || distanceToCamera > RENDER_OPAQUE_BEYOND * 0.5) {
|
||||||
|
|
Loading…
Reference in a new issue