fragment.sl (246B)
1 #version 330 core 2 in vec2 texCoord; 3 out vec4 FragColor; 4 uniform sampler2D texture0; 5 uniform sampler2D texture1; 6 uniform float alpha; 7 8 void 9 main() 10 { 11 FragColor = mix(texture(texture0, texCoord), 12 texture(texture1, vec2(1, 1)-texCoord), alpha); 13 }