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.
Hi Carl,
could you give a brief description on how your technique works and why you need the index?
Thanks,
Marco