How to set the UV from a CustomMesh?

I build up a custom mesh and would like set the frontUVsand backUVs to display the full picture. How can I do that?

customMesh set uv | Babylon.js Playground (babylonjs.com)

image

I found tha answer in the doc about how to create custom meshes

there is still a question…
I made a plane with two triangles. one has no pictuer. why?

customMesh set uv | Babylon.js Playground (babylonjs.com)

…

ah, I have to set more uvs and the right order of corner points to get the correct image… i have to figure it out later.

var uvs = [0, 1, 0, 0, 1, 0,
0, 1, 0, 0, 1, 0]

1 Like