I'm having some issues with my textures affecting the color of non-textured polygons. From the 'Color mixed with texture' thread, I saw this: "Yes, when your glTexEnv mode is MODULATE, then the final color is glColor*texture*lighting."
How can I arrange it so that my final color is only glColor*lighting? I'm using OpenGL 2.1.
Right now I've got this:
Code :if (enableLighting) { glEnable(GL_LIGHTING); glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, ambientDiffuse->toArray()); }//if enableLighting else { glDisable(GL_LIGHTING); glColor4fv(ambientDiffuse->toArray()); }//else enableLighting



