Having problems in giving color to a procedural mesh I have made, I tried to start form this exemple (https://wiki.unrealengine.com/Procedural_Mesh_Component_in_C%2B%2B:Getting_Started) to understand how UV and vertexColors are supposed to be used.
First of all, copy-pasting the code I found there, I got a triangle which isn’t not like the one represented there. Here’s my triangle:
I tried to change every
but the triangle still looked the same.
Plus, it’s not also very clear to me how UV co-ordinates works. For an example, if I had a vertex at (100, 0, 0) what should be its UV co-ordinates? (-10, 0) maybe?
Thanks for the attention!