Changeset 2ea6ae5 in git


Ignore:
Timestamp:
09/03/18 06:12:58 (19 months ago)
Author:
Olly Betts <olly@…>
Branches:
stereo
Children:
bb3d137
Parents:
a214f04
Message:

fixup! Add a translation for each eye

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gla-gl.cc

    ra214f04 r2ea6ae5  
    813813    CHECK_GL_ERROR("SetDataTransform", "glLoadIdentity");
    814814    if (m_Perspective) {
    815         glTranslated(0.0, 0.0, -near_plane);
     815        glTranslated(0.0, m_Eye ? -0.5 * EYE_SEP : 0.5 * EYE_SEP, -near_plane);
    816816    } else {
    817817        glTranslated(0.0, 0.0, -0.5 * m_VolumeDiameter);
     
    820820    // Get axes the correct way around (z upwards, y into screen)
    821821    glRotated(-90.0, 1.0, 0.0, 0.0);
    822     CHECK_GL_ERROR("SetDataTransform", "glRotated");
    823     glTranslated(m_Eye ? -0.5 * EYE_SEP : 0.5 * EYE_SEP, 0.0, 0.0);
    824822    CHECK_GL_ERROR("SetDataTransform", "glRotated");
    825823    glRotated(-m_Tilt, 1.0, 0.0, 0.0);
Note: See TracChangeset for help on using the changeset viewer.