Why don't you use the multitexture shader from the mtlFX.c? It can blend unlimited amount of textures.