VERTEX

void main()
{

	gl_Position = ftransform(); 
	gl_TexCoord[0] = gl_MultiTexCoord0 * gl_TextureMatrix[0];
	gl_TexCoord[1] = gl_MultiTexCoord0 * gl_TextureMatrix[1];

}
PIXEL
uniform sampler2D tex,tex1;
void main()
{
	gl_FragColor =  texture2D(tex,gl_TexCoord[0].st) + texture2D(tex1,gl_TexCoord[1].st);
}
