PDA

View Full Version : Specular Lighting



azcoder
05-11-2003, 08:07 AM
Thanks in advance for any help...

Do I need to do anything specific to disable specular highlights?

I am not setting a specular component, but I still see specular highlights.

My light is defined as:


GLfloat lightPos0[] = { X, Y+3000.0f, Z, 1.0 };
glLightfv( GL_LIGHT0, GL_POSITION, lightPos0 );

GLfloat lightdrop = 1.0f; //lower = brighter
glLightf( GL_LIGHT0, GL_CONSTANT_ATTENUATION,lightdrop );
GLfloat ltDiffuse0[] = { 1.0f, 1.0f, 1.0f, 1.0f };
glLightfv( GL_LIGHT0, GL_DIFFUSE, ltDiffuse0 );
glEnable(GL_LIGHT0);

azcoder
05-11-2003, 08:18 AM
I found my problem - I was setting a specular material component unintentionally

Please disregard previous post
Thanks