home *** CD-ROM | disk | FTP | other *** search
- //
- // Define the reflective properties of the 3D Object faces.
- //
-
- GLfloat glfMaterialColor[] = { nSize, (1.0f - nCol), (1.0f - nSize), nCol };
- glMaterialfv (GL_FRONT, GL_AMBIENT_AND_DIFFUSE, glfMaterialColor);
- glMaterialf (GL_FRONT_AND_BACK, GL_SHININESS,20);
-