how to get triangle vertex positions in fragment function?

Is there a way to get the vertex positions of the triangle in the fragment function, when the mesh is drawn with drawIndexedPrimitives?


Seems like I'd have to use drawPrimitives, do the indexing within the vertex function (performance hit), and send the vertex positions on to the fragment stage.