mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 21:36:47 +02:00
Fix rendering of look-at avatar sphere
postLighting is never true.
This commit is contained in:
parent
3564499824
commit
0df9ebeda3
1 changed files with 16 additions and 16 deletions
|
@ -451,6 +451,7 @@ void Avatar::render(RenderArgs* renderArgs, const glm::vec3& cameraPosition, boo
|
||||||
if (renderBounding && shouldRenderHead(renderArgs)) {
|
if (renderBounding && shouldRenderHead(renderArgs)) {
|
||||||
_skeletonModel.renderBoundingCollisionShapes(*renderArgs->_batch, 0.7f);
|
_skeletonModel.renderBoundingCollisionShapes(*renderArgs->_batch, 0.7f);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// If this is the avatar being looked at, render a little ball above their head
|
// If this is the avatar being looked at, render a little ball above their head
|
||||||
if (_isLookAtTarget && Menu::getInstance()->isOptionChecked(MenuOption::RenderFocusIndicator)) {
|
if (_isLookAtTarget && Menu::getInstance()->isOptionChecked(MenuOption::RenderFocusIndicator)) {
|
||||||
|
@ -469,7 +470,6 @@ void Avatar::render(RenderArgs* renderArgs, const glm::vec3& cameraPosition, boo
|
||||||
DependencyManager::get<DeferredLightingEffect>()->renderSolidSphere(batch, LOOK_AT_INDICATOR_RADIUS
|
DependencyManager::get<DeferredLightingEffect>()->renderSolidSphere(batch, LOOK_AT_INDICATOR_RADIUS
|
||||||
, 15, 15, LOOK_AT_INDICATOR_COLOR);
|
, 15, 15, LOOK_AT_INDICATOR_COLOR);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// quick check before falling into the code below:
|
// quick check before falling into the code below:
|
||||||
// (a 10 degree breadth of an almost 2 meter avatar kicks in at about 12m)
|
// (a 10 degree breadth of an almost 2 meter avatar kicks in at about 12m)
|
||||||
|
|
Loading…
Reference in a new issue