combine.fs 310 B

1234567891011121314151617181920
  1. #version 150
  2. #define brightness 2.0
  3. uniform sampler2D source[];
  4. uniform vec4 sourceSize[];
  5. in Vertex {
  6. vec2 texCoord;
  7. };
  8. out vec4 fragColor;
  9. void main() {
  10. vec4 image = texture2D(source[3], texCoord);
  11. vec4 previous = texture2D(source[0], texCoord);
  12. fragColor = 1.0 - (1.0 - image) * (1.0 - previous);
  13. }