mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
Merge pull request #613 from ZappoMan/bug_fixes
fixed FOV preference to work with view frustum code properly
This commit is contained in:
commit
58ca268b34
1 changed files with 3 additions and 0 deletions
|
@ -432,6 +432,9 @@ void Application::paintGL() {
|
|||
void Application::resizeGL(int width, int height) {
|
||||
float aspectRatio = ((float)width/(float)height); // based on screen resize
|
||||
|
||||
// reset the camera FOV to our preference...
|
||||
_myCamera.setFieldOfView(_horizontalFieldOfView);
|
||||
|
||||
// get the lens details from the current camera
|
||||
Camera& camera = _viewFrustumFromOffset->isChecked() ? _viewFrustumOffsetCamera : _myCamera;
|
||||
float nearClip = camera.getNearClip();
|
||||
|
|
Loading…
Reference in a new issue