c0dehunter
11-01-2011, 06:28 AM
Hello, I have enabled DIFFUSE (actually ambient and specular too) for my object in this way:
glMaterialfv(GL_FRONT,GL_DIFFUSE,diffuseMaterial);
glLightfv(GL_LIGHT0, GL_DIFFUSE, diffuseLight);
Now I don't know how to disable it in a manner that I will only see the effects of LIGHT0 withouth these additional effects?
So basically to make the light how it was after
glEnable(GL_LIGHTING);
glEnable(GL_COLOR_MATERIAL);
glEnable(GL_LIGHT0);
[/CODE]
glMaterialfv(GL_FRONT,GL_DIFFUSE,diffuseMaterial);
glLightfv(GL_LIGHT0, GL_DIFFUSE, diffuseLight);
Now I don't know how to disable it in a manner that I will only see the effects of LIGHT0 withouth these additional effects?
So basically to make the light how it was after
glEnable(GL_LIGHTING);
glEnable(GL_COLOR_MATERIAL);
glEnable(GL_LIGHT0);
[/CODE]