diff options
| author | Jules Blok <jules.blok@gmail.com> | 2014-10-31 16:05:44 +0100 |
|---|---|---|
| committer | Jules Blok <jules.blok@gmail.com> | 2014-11-23 14:27:39 +0100 |
| commit | 1261bd02caa0ca2503bdd52e7b37c22f8e0bcde5 (patch) | |
| tree | be38205c35d5341f8380ae60328e810b335b516c /Source/Core/VideoCommon/VertexShaderManager.cpp | |
| parent | c3ad6e78207bc0f64a9687fd8f27fbe0f7606bc7 (diff) | |
VertexShaderManager: Add stereoscopy options to swap the left and right eye.
Diffstat (limited to 'Source/Core/VideoCommon/VertexShaderManager.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VertexShaderManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/VertexShaderManager.cpp b/Source/Core/VideoCommon/VertexShaderManager.cpp index ad69ba4362..150bd783a8 100644 --- a/Source/Core/VideoCommon/VertexShaderManager.cpp +++ b/Source/Core/VideoCommon/VertexShaderManager.cpp @@ -516,8 +516,8 @@ void VertexShaderManager::SetConstants() if (g_ActiveConfig.iStereoMode > 0 && xfmem.projection.type == GX_PERSPECTIVE) { float offset = g_ActiveConfig.iStereoSeparation / (200.0f * g_ActiveConfig.iStereoFocalLength); - constants.stereooffset[0] = offset; - constants.stereooffset[1] = -offset; + constants.stereooffset[0] = (g_ActiveConfig.bStereoSwapEyes) ? -offset : offset; + constants.stereooffset[1] = (g_ActiveConfig.bStereoSwapEyes) ? offset : -offset; } else { |
