View Full Version : glColorMaterial
07-18-2002, 04:02 AM
Would it be better to turn this on?? I am currently texturing some models, and then blending some other textures onto them, like light maps and such. Would turning on glColorMaterial be better or worse. Im honestly not sure what glColorMaterial does.
glColorMaterial tells OpenGL to take one or a few material parameters from the primary color instead of taking it from the glMaterial function. Basically, it let's you change material with glColor, or glColorPointer if you use vertex arrays.
If this is "better" or "worse" for you, in your specific code, I have no idea, only you know what you like. The only real reason you need to use color material is when you need to change material per vertex, or inside a vertex array.
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.