Custom UV Mapping

I can’t for the life of me find any documentation on UV mapping. I understand the concept, but there’s no docs on what’s the syntax to apply one. I found references to faceVertexUvs, but it was removed. In the repo there’s one file still mentioning it (three.js/threejs.js at 3daf128f34da9cdb1e339766a4aae21b5989f131 · mrdoob/three.js · GitHub) which is really confusing.

There’s a nice guide on this, but no code that helps:

I’m generating the mesh vertices with code, but I don’t know where to put the uv coordinates.

Take a look at these examples from the Collection of examples from discourse.threejs.org .

BufferGeometryIndexed
BufferGeometryNonIndexed

RoundedRectangle
RoundEdgedBoxFlat

CircleDynamicallyFormable

BeginnerExample step 12


A little more complicated:
Curved2Geometry

see

function BasicGeometry( radialSegments, heightSegments, withTop, withBottom ) { ...