Commits

Cliff Biffle committed 9b69075

Removed the "purplish" color correction for non-textured anaglyph rendering. It was never quite right and made things uglier.

Comments (0)

Files changed (2)

   FILE *depthOutput;
   
   NSColor *deviceWhite;
-  NSColor *devicePurplish;
 }
 
 @property(retain) NSObject <KVDepthMap> *depthMap;
 
 - (void) awakeFromNib {
   deviceWhite = [[NSColor colorWithDeviceRed: 1.F green: 1.F blue: 1.F alpha: 1.F] retain];
-  devicePurplish = [[NSColor colorWithDeviceRed: 1.F green: 0.5F blue: 1.F alpha: 1.F] retain];
   
   colorTransform = (projective_transform_t) {
     .offset = { 14, 40, 0 },
     
   glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
   
+  renderer.color = deviceWhite;
   if (self.anaglyph) {
-    renderer.color = devicePurplish;
-
     camera.pos.x -= INTEROCULAR_DISTANCE / 2;
     camera.target.x -= INTEROCULAR_DISTANCE / 2; 
 
     glColorMask(GL_FALSE, GL_TRUE, GL_TRUE, GL_TRUE);
-  } else {
-    renderer.color = deviceWhite;
   }
   
   // Draw right eye or center.