mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 01:00:44 +02:00
Render the ball heads with the voxeltar bodies.
This commit is contained in:
parent
69356f6fa1
commit
28ffd8eca7
2 changed files with 4 additions and 2 deletions
|
@ -763,10 +763,11 @@ void Avatar::renderBody(bool lookingInMirror, bool renderAvatarBalls) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Render the body's voxels
|
// Render the body's voxels and head
|
||||||
float alpha = getBallRenderAlpha(BODY_BALL_HEAD_BASE, lookingInMirror);
|
float alpha = getBallRenderAlpha(BODY_BALL_HEAD_BASE, lookingInMirror);
|
||||||
if (alpha > 0.0f) {
|
if (alpha > 0.0f) {
|
||||||
_voxels.render(false);
|
_voxels.render(false);
|
||||||
|
_head.render(alpha);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_hand.render(lookingInMirror);
|
_hand.render(lookingInMirror);
|
||||||
|
|
|
@ -595,10 +595,11 @@ void MyAvatar::renderBody(bool lookingInMirror, bool renderAvatarBalls) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Render the body's voxels
|
// Render the body's voxels and head
|
||||||
float alpha = getBallRenderAlpha(BODY_BALL_HEAD_BASE, lookingInMirror);
|
float alpha = getBallRenderAlpha(BODY_BALL_HEAD_BASE, lookingInMirror);
|
||||||
if (alpha > 0.0f) {
|
if (alpha > 0.0f) {
|
||||||
_voxels.render(false);
|
_voxels.render(false);
|
||||||
|
_head.render(alpha);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_hand.render(lookingInMirror);
|
_hand.render(lookingInMirror);
|
||||||
|
|
Loading…
Reference in a new issue