12345678910111213
  1. #version 120
  2. uniform sampler2D texture;
  3. uniform sampler2D desktop;
  4. varying vec2 uvCoord;
  5. void main() {
  6. vec2 uv = vec2(uvCoord.x, -uvCoord.y);
  7. vec4 color = texture2D(desktop,uv);
  8. vec4 rect = texture2D(texture,uvCoord);
  9. gl_FragColor = vec4( 1.0 - color.rgb, color.a )*rect;
  10. }