History

Attempting to fix 3DTV/Oculus deferred lighting/ambient occlusion.

Andrzej Kapolka committed 12 years ago

Commit 2cba7b31 parent c5ad6035 files · +48 −1Browse files

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

Unified · Split

interface/src/Application.cpp+7−0
@@ -2971,7 +2971,14 @@ void Application::getProjectionMatrix(glm::dmat4* projectionMatrix) { · 2970 unmodified lines
29712971 void Application::computeOffAxisFrustum(float& left, float& right, float& bottom, float& top, float& nearVal,
29722972 float& farVal, glm::vec4& nearClipPlane, glm::vec4& farClipPlane) const {
29732973
2974+ // allow 3DTV/Oculus to override parameters from camera
29742975 _viewFrustum.computeOffAxisFrustum(left, right, bottom, top, nearVal, farVal, nearClipPlane, farClipPlane);
2976+ if (OculusManager::isConnected()) {
2977+ OculusManager::overrideOffAxisFrustum(left, right, bottom, top, nearVal, farVal, nearClipPlane, farClipPlane);
2978+
2979+ } else if (TV3DManager::isConnected()) {
2980+ TV3DManager::overrideOffAxisFrustum(left, right, bottom, top, nearVal, farVal, nearClipPlane, farClipPlane);
2981+ }
29752982 }
29762983
29772984 glm::vec2 Application::getScaledScreenPoint(glm::vec2 projectedPoint) {

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