Implement wide side-by-side mode, using adjusted aspect ratio in projection matrix.

Use optimal framebuffer size for side-by-side modes.
This commit is contained in:
Christopher Bruns 2016-09-11 13:42:41 -04:00 committed by Christoph Oelckers
commit 1f79e23d5b
8 changed files with 86 additions and 23 deletions

View file

@ -57,6 +57,7 @@
#include "gl/shaders/gl_colormapshader.h"
#include "gl/shaders/gl_lensshader.h"
#include "gl/shaders/gl_presentshader.h"
#include "gl/stereo3d/gl_stereo3d.h"
#include "gl/textures/gl_texture.h"
#include "gl/textures/gl_translate.h"
#include "gl/textures/gl_material.h"
@ -273,6 +274,8 @@ void FGLRenderer::SetOutputViewport(GL_IRECT *bounds)
mSceneViewport.top += mOutputLetterbox.top;
}
}
s3d::Stereo3DMode::getCurrentMode().AdjustViewports();
}
//===========================================================================