mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 00:13:53 +02:00
Changed mirror position to not be achored to the head.
But instead it's anchored to the "default" eye position, which is where the eyes are in the model, before IK or animations occur.
This commit is contained in:
parent
fa49342f00
commit
044ea2ace5
1 changed files with 1 additions and 1 deletions
|
@ -3381,7 +3381,7 @@ void Application::renderRearViewMirror(RenderArgs* renderArgs, const QRect& regi
|
|||
// This was removed in commit 71e59cfa88c6563749594e25494102fe01db38e9 but could be further
|
||||
// investigated in order to adapt the technique while fixing the head rendering issue,
|
||||
// but the complexity of the hack suggests that a better approach
|
||||
_mirrorCamera.setPosition(_myAvatar->getHead()->getEyePosition() +
|
||||
_mirrorCamera.setPosition(_myAvatar->getDefaultEyePosition() +
|
||||
_myAvatar->getOrientation() * glm::vec3(0.0f, 0.0f, -1.0f) * MIRROR_REARVIEW_DISTANCE * _myAvatar->getScale());
|
||||
}
|
||||
_mirrorCamera.setProjection(glm::perspective(glm::radians(fov), aspect, DEFAULT_NEAR_CLIP, DEFAULT_FAR_CLIP));
|
||||
|
|
Loading…
Reference in a new issue