Max Material ID's on a Mesh?

As said above, it’s because I’m going for such a high resolution on the Earth sphere (picture the film Gravity but in real-time), and I’m also using too many texture samplers in one chunk to use a masked material.