TexGen >> shader

Thanks David, you solved it! I finally have my own blending shader!

One more question: My video card has a maximum of 4 TextureStages. But, does this maximum also apply when I just use the TextureStage to pass the textures to the Shader?
I mean, can I use more than 4 textures here?