mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 00:56:48 +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
|
||||
rotation = Application::getInstance()->getCamera()->getRotation();
|
||||
rotation *= glm::angleAxis(glm::pi<float>(), glm::vec3(0.0f, 1.0f, 0.0f));
|
||||
rotation *= getRotation();
|
||||
} else {
|
||||
rotation = getRotation();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue