vec4 c1 = texture2D(texture[0], gl_TexCoord[0].xy); vec4 c2 = texture2D(texture[1], gl_TexCoord[0].xy); gl_FragColor = mix(c1, c2, gl_TexCoord[0].x);