One texture, multiple UV offsets/scales

I am looking for a memory efficient way to load many textured surfaces that use different parts of the same image, using individual UV scales and offsets. The trouble is that in Babylon, the UV scale and offset are properties of the texture object. Is there a way to link the same data buffer to multiple texture objects? I could load the image into a Uint8Array and feed it into a RawTexture, but I am not certain whether this does what I think it might. Any ideas, thoughts?

You can create multiple textures pointing to the same url. Internally babylonjs will share the same webgl memory

1 Like

Oh! How clever! This can be used to great advantage. Thanks.

2 Likes