History

Removed jitter samples from shader and added name to batches in DEBUG mode to ease render debug

Olivier Prat committed 8 years ago

Commit 92e1fe81 parent 291711e43 files · +178 −256Browse files

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

Unified · Split

interface/src/Application.cpp+5−5
@@ -5070,10 +5070,10 @@ void Application::update(float deltaTime) { · 5069 unmodified lines
50705070 {
50715071 QMutexLocker viewLocker(&_viewMutex);
50725072 // adjust near clip plane to account for sensor scaling.
5073− auto adjustedProjection = glm::perspective(_viewFrustum.getFieldOfView(),
5074− _viewFrustum.getAspectRatio(),
5075− DEFAULT_NEAR_CLIP * sensorToWorldScale,
5076− _viewFrustum.getFarClip());
5073+ auto adjustedProjection = glm::perspective(glm::radians(_fieldOfView.get()),
5074+ getActiveDisplayPlugin()->getRecommendedAspectRatio(),
5075+ DEFAULT_NEAR_CLIP * sensorToWorldScale,
5076+ DEFAULT_FAR_CLIP);
50775077 _viewFrustum.setProjection(adjustedProjection);
50785078 _viewFrustum.calculate();
50795079 }
@@ -5095,7 +5095,7 @@ void Application::update(float deltaTime) { · 15 unmodified lines
50955095 resizeGL();
50965096 }
50975097
5098− this->updateCamera(appRenderArgs._renderArgs);
5098+ updateCamera(appRenderArgs._renderArgs);
50995099 appRenderArgs._eyeToWorld = _myCamera.getTransform();
51005100 appRenderArgs._isStereo = false;
51015101

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