Showing the changes to interface/src/Application.cpp (1 of 5 files). Show all
Unified · Split
| @@ -1803,7 +1803,7 @@ void Application::update(float deltaTime) { · 1802 unmodified lines | ||
| 1803 | 1803 | |
| 1804 | 1804 | if (Menu::getInstance()->isOptionChecked(MenuOption::OffAxisProjection)) { |
| 1805 | 1805 | if (_faceshift.isActive()) { |
| 1806 | − const float EYE_OFFSET_SCALE = 0.1f; | |
| 1806 | + const float EYE_OFFSET_SCALE = 0.005f; | |
| 1807 | 1807 | glm::vec3 position = _faceshift.getHeadTranslation() * EYE_OFFSET_SCALE; |
| 1808 | 1808 | _myCamera.setEyeOffsetPosition(glm::vec3(-position.x, position.y, position.z)); |
| 1809 | 1809 | resizeGL(_glWidget->width(), _glWidget->height()); |
| @@ -1912,6 +1912,7 @@ void Application::updateAvatar(float deltaTime) { · 102 unmodified lines | ||
| 1912 | 1912 | _myAvatar.setCameraAspectRatio(_viewFrustum.getAspectRatio()); |
| 1913 | 1913 | _myAvatar.setCameraNearClip(_viewFrustum.getNearClip()); |
| 1914 | 1914 | _myAvatar.setCameraFarClip(_viewFrustum.getFarClip()); |
| 1915 | + _myAvatar.setCameraEyeOffsetPosition(_viewFrustum.getEyeOffsetPosition()); | |
| 1915 | 1916 | |
| 1916 | 1917 | NodeList* nodeList = NodeList::getInstance(); |
| 1917 | 1918 | if (nodeList->getOwnerID() != UNKNOWN_NODE_ID) { |