Use the same texture with different offsets on different materials

What you could do in such situation (assuming it’s related to this) is:

  1. Load texture image once. Create new Texture instance for each letter, with different offset, and then use these textures in materials for specific meshes (mind this is quite a bruteforce approach and you’ll end up with a lot of textures.)
  2. Create just a single Texture. Apply texture to your meshes. Modify each mesh UV attribute to display the part of the texture you’d like it to display (see mesh.geometry.attributes.uv, this thread may also help.) It’s pretty similar to offset on the texture, but instead of modifying the texture, you modify only the specific mesh.

(also, since it’s react-fiber, @drcmda , maybe there are easier ways there :face_with_monocle:)

1 Like