Showing the changes to interface/src/Application.cpp (1 of 43 files). Show all
Unified · Split
| @@ -5070,10 +5070,10 @@ void Application::update(float deltaTime) { · 5069 unmodified lines | ||
| 5070 | 5070 | { |
| 5071 | 5071 | QMutexLocker viewLocker(&_viewMutex); |
| 5072 | 5072 | // adjust near clip plane to account for sensor scaling. |
| 5073 | − auto adjustedProjection = glm::perspective(_viewFrustum.getFieldOfView(), | |
| 5074 | − _viewFrustum.getAspectRatio(), | |
| 5075 | − DEFAULT_NEAR_CLIP * sensorToWorldScale, | |
| 5076 | − _viewFrustum.getFarClip()); | |
| 5073 | + auto adjustedProjection = glm::perspective(glm::radians(_fieldOfView.get()), | |
| 5074 | + getActiveDisplayPlugin()->getRecommendedAspectRatio(), | |
| 5075 | + DEFAULT_NEAR_CLIP * sensorToWorldScale, | |
| 5076 | + DEFAULT_FAR_CLIP); | |
| 5077 | 5077 | _viewFrustum.setProjection(adjustedProjection); |
| 5078 | 5078 | _viewFrustum.calculate(); |
| 5079 | 5079 | } |
| @@ -5095,7 +5095,7 @@ void Application::update(float deltaTime) { · 15 unmodified lines | ||
| 5095 | 5095 | resizeGL(); |
| 5096 | 5096 | } |
| 5097 | 5097 | |
| 5098 | − this->updateCamera(appRenderArgs._renderArgs); | |
| 5098 | + updateCamera(appRenderArgs._renderArgs); | |
| 5099 | 5099 | appRenderArgs._eyeToWorld = _myCamera.getTransform(); |
| 5100 | 5100 | appRenderArgs._isStereo = false; |
| 5101 | 5101 | |