vertex index in vertex shader

This topic contains 1 reply, has 2 voices, and was last updated by  marco 5 years, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #30817

    Carl
    Member

    Is it possible to get the index of the vertex in the triangle in the vertex shader?

    2

    |

    0_1

    I can pass it as attribute data but then I have to replicate all vertex data and as a result it is not useful to use glDrawElements anymore.

    I like to use it for single pass wireframe rendering.

    #35700

    marco
    Member

    Hi Carl,

    could you give a brief description on how your technique works and why you need the index?

    Thanks,
    Marco

Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.