How to apply two textures to the same PShape?

The hint would change the value of gl_VertexID if there were more than one shape, as all shapes would be sent in one batch (if I understood it correctly).