Passing non uniform material

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

disregard that question, already found a solution:

glEnable(GL_COLOR_MATERIAL);

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

Heinrich

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.