Advertisement

Lighting Arrays

Started by November 18, 2003 02:29 PM
0 comments, last by luridcortex 21 years, 3 months ago
Sorry if i missed this in the text, but what does the fourth elemt in the lighting arrays do for diffuse and ambient light? they are both 1.0.

GLfloat LightAmbient[] = {0.5f, 0.5f, 0.5f, 1.0f};
GLfloat LightAmbient[] = {1.5f, 1.5f, 1.5f, 1.0f};
 
[edited by - luridcortex on November 18, 2003 3:29:42 PM]
1.0 is default value for 4th component (alpha) for GL_AMBIENT and GL_DIFFUSE for light0. You might want to read OpenGL specifications how this affects final fragment color.

You should never let your fears become the boundaries of your dreams.
You should never let your fears become the boundaries of your dreams.

This topic is closed to new replies.

Advertisement