Is it possible to set the location for the texture?

Hello everyone

I want to know is it possible to set the location for the texture , for example is it possible to put the texture from location of the edge of the plane?
here is a sample PG: https://playground.babylonjs.com/#03C60U#5

Hey Arash,

You can use the UVs to position where a texture is on a mesh

e.g.

https://playground.babylonjs.com/#03C60U#7

Probably a easier way would be to do it in a 3d modeling program e.g blender

1 Like

Hey @kestrelpi
Thanks a lot :pray: :pray:

sorry for my another question, Is it possible to stop the repeating the texture? I want to use a texture and put it on my map in terms of the location, and I don’t want to repeat the texture over the map.

Set texture.wrapU and/or wrapV to clamp i.e. Texture.CLAMP_ADDRESSMODE or 0.

https://playground.babylonjs.com/#03C60U#8

1 Like