So I was thinking about this more and I think I could do it with a "while" statement in a custom node, with static amount of inputs, lets say max 16 tiles on a 4x4 grid but it would have "tiles" input and it would stop whenever the loop reached the amount of needed tiles. I'll come back with the results.
Yes. Use an IF on the uv coordinates. If you are looking for tile 4 on the horizontal axis, compare it with 4. If bigger, output one. If smaller, output zero. Then you can use this to lerp together your tiles. Doing this manually isn't really effective when we are talking about large amount of tiles. But you can probably…