# Repeat texture on different meshes of different sizes

**URL:** <https://discourse.threejs.org/t/repeat-texture-on-different-meshes-of-different-sizes/50875>\
**Category:** Questions\
**Tags:** textures\
**Created:** [April 26, 2023, 4:12pm UTC](https://discourse.threejs.org/t/repeat-texture-on-different-meshes-of-different-sizes/50875 "2023-04-26T16:12:36Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![PavelBoytchev](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/pavelboytchev/32/38639_2.png) [@PavelBoytchev](https://discourse.threejs.org/u/PavelBoytchev)\
**Post date:** [April 27, 2023, 10:19am UTC](https://discourse.threejs.org/t/repeat-texture-on-different-meshes-of-different-sizes/50875/4 "2023-04-27T10:19:15Z")

</div>

Cloning creates a new JS object (so it uses some memory, but rather small). The image data is reused without cloning.

If you want to dynamically modify the number of repeat-s, DO NOT clone the texture every time. Cloning is done only once, then you can freely change the repeat of each material’s texture.

I will prepare an example with UV.

Edit: here is the example with UV modification (the size changes every second, only one texture is used):

[https://codepen.io/boytchev/full/wvYeMrG](https://codepen.io/boytchev/full/wvYeMrG)

[![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/2/7/2796cf4de4d3a49f253473844047ff055e810f5f.jpeg)](https://codepen.io/boytchev/full/wvYeMrG)

Edit 2: I also modified my previous example (the one with 6 cloned textures) – now it has dynamically changed size too

---

_[View the full topic](https://discourse.threejs.org/t/repeat-texture-on-different-meshes-of-different-sizes/50875)._
