From e9ff06df242756c82d1b312bf158be0d8e77de0c Mon Sep 17 00:00:00 2001 From: Sam Cake Date: Fri, 15 May 2015 17:22:29 -0700 Subject: [PATCH] FIx the issue where the view frustum used in the skybox wasn;t in sync with the true camera, except if shadows is on, THe one call missing is now always executed --- interface/src/Application.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 6665e71642..37ee116f40 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -885,6 +885,10 @@ void Application::paintGL() { _myCamera.update(1.0f / _fps); } + // Sync up the View Furstum with the camera + // FIXME: it's happening again in the updateSHadow and it shouldn't, this should be the place + loadViewFrustum(_myCamera, _viewFrustum); + if (getShadowsEnabled()) { updateShadowMap(); }