PDA

View Full Version : glColor per Texture Unit?



waramp
01-23-2004, 11:17 AM
Hi all, does glColor() apply to every Texture unit or only the active one?

Can I specifiy a seperate per-vertex color per texture unit?

dorbie
01-23-2004, 03:14 PM
glColor is one color and can be applied per vertex, there is no per texture per vertex color. You have other colors available like the secondary color using glSecondaryColor3f, but you need to look at using combiner & related extensions or the more contemporary fragment shaders to use these colors instead of just daisy chaining textures.

waramp
01-23-2004, 04:32 PM
Ah Crap. Thanks Dorbie. http://www.opengl.org/discussion_boards/ubb/smile.gif