Commits

Cliff Biffle  committed 5a6f5dc

Point rendering now passes a normal array to the card to support lighting calculations.

  • Participants
  • Parent commits c54dc0d
  • Branches shaders

Comments (0)

Files changed (1)

File KVRayFieldSpaceModel.m

   glNormal3f(0, 0, -1);
   glEnableClientState(GL_VERTEX_ARRAY);
   glVertexPointer(3, GL_FLOAT, 0, &rays);
+
+  glEnableClientState(GL_NORMAL_ARRAY);
+  glNormalPointer(GL_FLOAT, 0, &normals);
+  
   glDrawArrays(GL_POINTS, 0, 640 * 480);
+  
+  glDisableClientState(GL_NORMAL_ARRAY);
   glDisableClientState(GL_VERTEX_ARRAY);
 }