PDA

View Full Version : Passing non uniform material



heinz85
05-03-2012, 02:21 PM
Hello.
Assume I have a simple polygonal object, each vertex having its own material.
Is there any way I can pass separate material data for each vertex (as if I was passing color)? glMaterial sets the material for the whole object, and this is not what I need.

Thanks,
Heinrich

heinz85
05-05-2012, 02:19 AM
disregard that question, already found a solution:

glEnable(GL_COLOR_MATERIAL);

(Or something like that, I already forgot what GL_SOMETHING it was)...

Heinrich