Source

kinect-viewer / KVRenderer.h

Diff from to

KVRenderer.h

 // scratch at each frame and describing only the nearest visible
 // surfaces.
 @interface KVRenderer : NSObject {
-  // The actual scene model.  Alarmingly, gcc generates suboptimal
-  // code if we use [480][640].
-  vec2f_t rays[480 * 640];
+  // A static field of points representing the imaging sensor's
+  // pixel grid.  We transform these in a vertex shader to recreate
+  // the environment.
+  vec2f_t points[480][640];
   
   // The raw RGB samples of the last color image.  These do not
   // map one-to-one onto rays because the cameras are offset.