how to assign uv coords per face?

hi there,

i created a mesh by script where tris/faces share vertices. think of it as a very basic terrain-map.
i want to texture each face separately from a texture-atlas …but because the faces share vertices, i can’t “double” assign the correct uv-coords to the corresponding vertex. is it somehow possible to assign uv coords per tri? -i dont want to use another texture/material.

thanks in advance!

You have to split the vertices. That is, create duplicates and new triangles for them. The size of the mesh will grow, but it shouldn’t hurt performance too much.