mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
BGE: FIX T43537: ImageMirror does not work in BlenderPlayer with quad buffer
In quad-buffer stereo mode, the GE render pass ends with the right eye on the right buffer, but we need to draw on the left buffer to capture the render. Reviewed By: agoose77, HG1
This commit is contained in:
parent
a6421e1291
commit
b329016b29
1 changed files with 6 additions and 0 deletions
|
|
@ -272,6 +272,12 @@ void ImageRender::Render()
|
|||
// restore the stereo mode now that the matrix is computed
|
||||
m_rasterizer->SetStereoMode(stereomode);
|
||||
|
||||
if (stereomode == RAS_IRasterizer::RAS_STEREO_QUADBUFFERED) {
|
||||
// In QUAD buffer stereo mode, the GE render pass ends with the right eye on the right buffer
|
||||
// but we need to draw on the left buffer to capture the render
|
||||
// TODO: implement an explicit function in rasterizer to restore the left buffer.
|
||||
m_rasterizer->SetEye(RAS_IRasterizer::RAS_STEREO_LEFTEYE);
|
||||
}
|
||||
m_scene->CalculateVisibleMeshes(m_rasterizer,m_camera);
|
||||
|
||||
m_scene->RenderBuckets(camtrans, m_rasterizer);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue