02/06/2003
15-462 Graphics I
28
Sphere Normals
•Set up instead to use normals of sphere
•Unit sphere normal is exactly sphere point
 glBegin(GL_TRIANGLES);
  for (i = 0; i < 20; i++) {
    glNormal3fv(&vdata[tindices[i][0]][0]);
    glVertex3fv(&vdata[tindices[i][0]][0]);
    glNormal3fv(&vdata[tindices[i][1]][0]);
    glVertex3fv(&vdata[tindices[i][1]][0]);
    glNormal3fv(&vdata[tindices[i][2]][0]);
    glVertex3fv(&vdata[tindices[i][2]][0]);
  }
  glEnd();