Texture on custom setVerticesData

i dont want tthis texture ‘angle’. please where is my mistake?

The uv of the ground is produced when createGround, so as you changed the indices and not using the same faces as default, you should also change the uv for it.

Or you can also change the vertices order to follow the default indices.

(I changed material to PBRMaterial only for debugmode

4 Likes

thanks a lot!

console.log(cazesi.getIndices()) :heart_eyes:

const vertices = [
new BABYLON.Vector3( .5, -.5, .2),
new BABYLON.Vector3(-.5, -.5, .1), 
new BABYLON.Vector3( .5,  .5, .3),
 new BABYLON.Vector3(-.5,.5, 0),];