How to change texture/color per object instance in InstancedMesh

ok, i think my only problem now is that i don’t know which part of the fragementShader exactly to replace with the code to apply my specific texture:

gl_FragColor = texture2D(textures[0], vUv );

i tried to replace #include <map_fragment> part, but that didn’t go too well :smiley: