Commits

Cliff Biffle  committed 2ca4177

Anaglyph rendering now assumes that the eyes converge about 10m ahead of the viewer. This seems to make things a bit more comfortable.

  • Participants
  • Parent commits 8c25cb9

Comments (0)

Files changed (1)

File KVDepthView.m

   renderer.color = deviceWhite;
   if (self.anaglyph) {
     camera.pos.x -= INTEROCULAR_DISTANCE / 2;
-    camera.target.x -= INTEROCULAR_DISTANCE / 2; 
 
     glColorMask(GL_FALSE, GL_TRUE, GL_TRUE, GL_TRUE);
   }
     glClear(GL_DEPTH_BUFFER_BIT);
     
     camera.pos.x += INTEROCULAR_DISTANCE;
-    camera.target.x += INTEROCULAR_DISTANCE;
     
     glColorMask(GL_TRUE, GL_FALSE, GL_FALSE, GL_TRUE);
     [self updateModelView];
     glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);
     
     camera.pos.x -= INTEROCULAR_DISTANCE / 2;
-    camera.target.x -= INTEROCULAR_DISTANCE / 2; 
   }
   
   [[self openGLContext] flushBuffer];