Multiple textures with instanced geometry

I use instanced buffered geometry to draw a lot of points. But such geometry uses a single material. How can I use different textures for each point? I have an idea to put all the textures on one canvas, but I don’t understand how to draw the desired texture in the shader.

I use an extra attribute for uv_offset to do this for various use cases typically particles and vegetation systems.


Specifically for an instanced buffer geometry, use an instanced buffer attribute to shift UVs.
Jusn an example:


Thx. I found solution.