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]
Lighting Arrays
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.
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.
You should never let your fears become the boundaries of your dreams.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement