#version 120

uniform sampler2D textures[2];

varying float fade_factor;
varying vec2 texcoord;

void main()
{
  gl_FragColor = mix(texture2D(textures[0], texcoord),
                     texture2D(textures[1], texcoord),
                     fade_factor
                     );
}
