mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 05:58:27 +02:00
Reverse direction of eye offset.
This commit is contained in:
parent
aa353a57ad
commit
dfa3ea78da
1 changed files with 1 additions and 1 deletions
|
@ -2044,7 +2044,7 @@ void Application::update(float deltaTime) {
|
|||
if (_faceshift.isActive()) {
|
||||
const float EYE_OFFSET_SCALE = 0.025f;
|
||||
glm::vec3 position = _faceshift.getHeadTranslation() * EYE_OFFSET_SCALE;
|
||||
_myCamera.setEyeOffsetPosition(glm::vec3(position.x * xSign, position.y, position.z));
|
||||
_myCamera.setEyeOffsetPosition(glm::vec3(position.x * xSign, position.y, -position.z));
|
||||
updateProjectionMatrix();
|
||||
|
||||
} else if (_webcam.isActive()) {
|
||||
|
|
Loading…
Reference in a new issue