hi,
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);
glColor4fv(color1) ;
glColorMaterial (GL_BACK, GL_AMBIENT_AND_DIFFUSE);
glColor4fv(color2) ;
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 ! : )