i want to light my objects back and front.
her is my pseudo-code :
glPolygonMode(GL_FRONT_AND_BACK , GL_FILL);
glColorMaterial (GL_FRONT, GL_AMBIENT_AND_DIFFUSE);
glColorMaterial (GL_BACK, GL_AMBIENT_AND_DIFFUSE);
i don’t have the desired effect. can anybody tell me why?
moreover, do i have to specify normals again but in an opposite direction ?
thanks ! : )