default.frag 308 B

12345678910111213141516171819
  1. uniform sampler2D tex;
  2. uniform sampler2D videoTex;
  3. in vec2 texCoord;
  4. in vec2 videoCoord;
  5. out vec4 fragColor;
  6. void main()
  7. {
  8. #if SUPERIMPOSE
  9. vec4 col = texture(tex, texCoord);
  10. vec4 vid = texture(videoTex, videoCoord);
  11. fragColor = mix(vid, col, col.a);
  12. #else
  13. fragColor = texture(tex, texCoord);
  14. #endif
  15. }