mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +02:00
Fix ray picking working intermittently
Ray picking relies on the Application's viewFrustum which was being set to both the main camera and mirror camera for their respective pass while rendering. This makes sure the viewFrustum only ever holds the main camera. Application::_displayViewFrustum still gets updated to the current camera while rendering.
This commit is contained in:
parent
f3fd5c9847
commit
198b6cfa88
1 changed files with 0 additions and 3 deletions
|
@ -3395,9 +3395,6 @@ void Application::renderRearViewMirror(RenderArgs* renderArgs, const QRect& regi
|
|||
renderArgs->_context->render(batch);
|
||||
}
|
||||
|
||||
bool updateViewFrustum = false;
|
||||
loadViewFrustum(_mirrorCamera, _viewFrustum);
|
||||
|
||||
// render rear mirror view
|
||||
displaySide(renderArgs, _mirrorCamera, true, billboard);
|
||||
|
||||
|
|
Loading…
Reference in a new issue