Results 1 to 2 of 2

Thread: Passing non uniform material

  1. #1
    Junior Member
    Join Date
    May 2012
    Posts
    2

    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

  2. #2
    Junior Member
    Join Date
    May 2012
    Posts
    2

    Re: Passing non uniform material

    disregard that question, already found a solution:

    glEnable(GL_COLOR_MATERIAL);

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

    Heinrich

Similar Threads

  1. Wavefront obj loader material problem
    By lenka in forum OpenGL ES 1.X - fixed function hardware
    Replies: 0
    Last Post: 11-14-2010, 09:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •