OpenGL Super Bible! Page 357 value. For GL_LIGHT_MODEL_AMBIENT (Freelance web design)
OpenGL Super Bible! Page 357 value. For GL_LIGHT_MODEL_AMBIENT this array points to four values that indicate the RGBA components of the ambient light. Returns None. Example The following code from this chapter s AMBIENT example sets up a global ambient light source consisting of a full-intensity white light. // Bright white light GLfloat ambientLight[] = { 1.0f, 1.0f, 1.0f, 1.0f }; glEnable(GL_DEPTH_TEST); // Hidden surface removal glEnable(GL_CULL_FACE); // Do not calculate inside of jet glFrontFace(GL_CCW); // Counterclockwise polygons face out // Enable lighting glEnable(GL_LIGHTING); // Set light model to use ambient light specified by ambientLight glLightModelfv(GL_LIGHT_MODEL_AMBIENT,ambientLight); See Also glLight, glMaterial
Please visit Domain Name Hosting services for high quality webhost to host and run your jsp applications.