Multiple textures with instanced geometry

textures
instancing

#1

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.


#2

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


#3

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


#4

Thx. I found solution.