Home › Forums › PowerVR Insider Graphics › vertex index in vertex shader
This topic contains 1 reply, has 2 voices, and was last updated by marco 5 years, 9 months ago.
Is it possible to get the index of the vertex in the triangle in the vertex shader?
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.
could you give a brief description on how your technique works and why you need the index?