mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 11:50:39 +02:00
Make the surrounding spheres glow when moving, too.
This commit is contained in:
parent
e67aee4b74
commit
3dfefefeae
1 changed files with 19 additions and 17 deletions
|
@ -486,6 +486,10 @@ void Avatar::render(bool lookingInMirror, bool renderAvatarBalls) {
|
|||
// render a simple round on the ground projected down from the avatar's position
|
||||
renderDiskShadow(_position, glm::vec3(0.0f, 1.0f, 0.0f), _scale * 0.1f, 0.2f);
|
||||
|
||||
{
|
||||
// glow when moving
|
||||
Glower glower(_moving ? 1.0f : 0.0f);
|
||||
|
||||
// render body
|
||||
renderBody(lookingInMirror, renderAvatarBalls);
|
||||
|
||||
|
@ -503,6 +507,7 @@ void Avatar::render(bool lookingInMirror, bool renderAvatarBalls) {
|
|||
glutSolidSphere(1.2f + _head.getAverageLoudness() * .0005f, 20, 20);
|
||||
glPopMatrix();
|
||||
}
|
||||
}
|
||||
|
||||
// Render the balls
|
||||
if (_balls) {
|
||||
|
@ -697,9 +702,6 @@ float Avatar::getBallRenderAlpha(int ball, bool lookingInMirror) const {
|
|||
|
||||
void Avatar::renderBody(bool lookingInMirror, bool renderAvatarBalls) {
|
||||
|
||||
// glow when moving
|
||||
Glower glower(_moving ? 1.0f : 0.0f);
|
||||
|
||||
if (_head.getFace().isFullFrame()) {
|
||||
// Render the full-frame video
|
||||
float alpha = getBallRenderAlpha(BODY_BALL_HEAD_BASE, lookingInMirror);
|
||||
|
|
Loading…
Reference in a new issue