ground multitexturing- combine textures of different stages?

Can someone show an example showing 5 or 6, or even more textures?

I can get the first 4 or so, but it always errors when I go more or start adding lights. This is with setShaderAuto.