home *** CD-ROM | disk | FTP | other *** search
/ 3DS Max Model 2 / 3dsModelCD2.iso / ALTEROS / setup.exe / #setuppath# / PLUGINS / GLC.X3D / CPP / USE_DEFMATERIAL < prev   
Encoding:
Text File  |  2002-04-04  |  296 b   |  8 lines

  1.     //
  2.     // Define the reflective properties of the 3D Object faces.
  3.     //
  4.     
  5.     GLfloat glfMaterialColor[] = { nSize, (1.0f - nCol), (1.0f - nSize), nCol };
  6.     glMaterialfv (GL_FRONT, GL_AMBIENT_AND_DIFFUSE, glfMaterialColor);
  7.     glMaterialf (GL_FRONT_AND_BACK, GL_SHININESS,20);
  8.