I am interested in the question is it possible to get these coordinates in Spark AR?
I think something like this would need to be computed on the CPU so I’m not sure if it can be done in Spark. At least, I don’t see a straight forward way of doing it in a vertex shader. You could bake the barycentric coordinate texture out and use that for the lookups in spark. What are you trying to do with it?
Baking is not suitable.
I want to make a “wireframe view”.
I know how to do this with UV preparation, but ideally, learn how to do only in Spark Ar
It looks like you need to encode the mesh data somehow. This lib is a good reference. You can see they transform the mesh data into barycentric coordinates before sending it to the shader.