History

fixed FOV preference with projection matrix

ZappoMan committed 13 years ago

Commit f45f0611 parent 1e197481 file · +3 −0Browse files

Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all

Unified · Split

interface/src/Application.cpp+3−0
@@ -432,6 +432,9 @@ void Application::paintGL() { · 431 unmodified lines
432432 void Application::resizeGL(int width, int height) {
433433 float aspectRatio = ((float)width/(float)height); // based on screen resize
434434
435+ // reset the camera FOV to our preference...
436+ _myCamera.setFieldOfView(_horizontalFieldOfView);
437+
435438 // get the lens details from the current camera
436439 Camera& camera = _viewFrustumFromOffset->isChecked() ? _viewFrustumOffsetCamera : _myCamera;
437440 float nearClip = camera.getNearClip();

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t