mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 07:14:11 +02:00
Add rotation to facingAvatar billboard overlays
This commit is contained in:
parent
a758ccd75a
commit
36c14de250
1 changed files with 1 additions and 0 deletions
|
@ -58,6 +58,7 @@ void BillboardOverlay::render(RenderArgs* args) {
|
||||||
// rotate about vertical to face the camera
|
// rotate about vertical to face the camera
|
||||||
rotation = Application::getInstance()->getCamera()->getRotation();
|
rotation = Application::getInstance()->getCamera()->getRotation();
|
||||||
rotation *= glm::angleAxis(glm::pi<float>(), glm::vec3(0.0f, 1.0f, 0.0f));
|
rotation *= glm::angleAxis(glm::pi<float>(), glm::vec3(0.0f, 1.0f, 0.0f));
|
||||||
|
rotation *= getRotation();
|
||||||
} else {
|
} else {
|
||||||
rotation = getRotation();
|
rotation = getRotation();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue