I'm writing a WebGL program that draws a bunch of triangles to the screen. I'm using indirect addressing, so something like this:
gl.drawElements(gl.TRIANGLES, list.length, gl.UNSIGNED_SHORT, 0);
Is there any way for the vertex shader to know which vertex of a triangle it is processing? (among the three vertices in the order given by the list, i.e., the first, second or last)