This is most likely a noob question, but I haven't figured this out yet and I can't find the answer anywhere in a search (probably because I'm not asking the right question).
I am generating a terrain that uses isosurface by Raghvendra Chandrashekara. Once the vertexes are generated, it is converted to an indexed primitive. I want to texture each face separately with its own texture coordinates-- I don't know how to do that.
The normal way of texturing has each vertex with a UV coordinate, but I think I need each FACE to have its own set of those coordinates (hope this is making sense). Here is an example texture:
ShipIntTex01.png 1.24MB 0 downloads
For instance, I have a flat mesh with 6 vertices and I want the texturing to look like this:
Untitled.png 186.02KB 0 downloads
With the conventional way, I would end up with this instead: (similar, but not actual)
Untitled2.png 268.46KB 0 downloads
How do I achieve this?