Add rotation to facingAvatar billboard overlays

This commit is contained in:
Ryan Huffman 2015-03-10 13:11:39 -07:00
parent a758ccd75a
commit 36c14de250

View file

@ -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();
}