Is there a way to access the attributes of a triangle or face associated with the currently processed fragment? I see that we can get barycentric coordinates for each face using Geometry node -> Parametric output but I would like to further get for example and ID or at least color value or whatever attribute of each adjacent vertex.
I guess I can do something like using the Position output to get a world-space coordinates and then get the closest vertices to this but that's not ideal.
For example here:
I would like to also know that the barycentric coordinates of the red point are also corresponding to the vertices 1,4,3.