The question is similar to Stadium Seating Letters. I have created a lot of cubes using Animation Nodes (Grid Mesh) and would like to texture all of them using a single image texture, something like this:.

(Image from this answer by Markus von Broady)
How can this be achieved?

