Name: | _______________________________ |
Student ID: | _______________________________ |
glBegin( GL_TRIANGLES ); glColor3f ( 0.0, 1.0, 0.0 ); glVertex3f( 0.0, 0.0, 0.0 ); glVertex3f( 1.0, 0.0, 0.0 ); glVertex3f( 0.0, 1.0, 0.0 ); glEnd();The normal vector is (0, 1, 0), pointing in the positive y direction.
sx | 0 | 0 | sx tx |
0 | sy | 0 | sy ty |
0 | 0 | sz | sz tz |
0 | 0 | 0 | 1 |