mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 04:03:59 +02:00
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
This commit is contained in:
parent
c3dfd574b4
commit
e9ff06df24
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue