I am creating a PlaneGeometry of small size. Using TextureLoader I load PNG into it. This is my texture atlas consisting of 6 images. But when I display it, PNG is reduced to the size of PlaneGeometry. How can I make PNG go beyond PlaneGeometry boundaries and shift the texture if necessary?
Is it related to this topic? Different textures from InstancedMesh
In general, you need to compute proper UV coordinates, or use .offset
and .repeat
properties of Texture
.
The problem is that I have all 6 pictures fit in PlaneGeometry. But only one should. changing offset and repeat doesn’t help.