mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 18:47:28 +02:00
Merge pull request #1034 from ey6es/master
Try reversing the eye offset z component so that leaning forward makes things bigger.
This commit is contained in:
commit
8949cb595c
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