Preliminary work to use multiple textures in the same draw command, a bit ugly, but GLSL100 compatible though.