I know such a thing can be done in D3D, but I havn't run across anything similar for OpenGL yet.
Basically, what I'm trying to do in the end is display a texture composed in this way:
(T1*T2) + (T3*T4) + ... + (Tn*Tn+1)
Where the *'s are modualtions and the +'s are alpha blends.
I really can't see any way to acomplish this other than to modulate two textures together, render them to a texture, then blend the resultant texture into the final image.
If anyone has any idea on how to go about rendering to a texture, or has a better way to solve the texturing problem, please let me know.
Thanks