Fixing aspect ratio

This commit is contained in:
Brad Davis 2015-08-08 14:08:41 -07:00
parent ba498e8f33
commit 639a0822fe

View file

@ -1190,6 +1190,8 @@ void Application::resizeGL() {
// Possible change in aspect ratio
loadViewFrustum(_myCamera, _viewFrustum);
}
_myCamera.setProjection(glm::perspective(glm::radians(DEFAULT_FIELD_OF_VIEW_DEGREES), aspect(_renderResolution),
DEFAULT_NEAR_CLIP, DEFAULT_FAR_CLIP));
auto offscreenUi = DependencyManager::get<OffscreenUi>();