Invert.frag 207 B

12345678910
  1. #ifdef GL_ES
  2. precision mediump float;
  3. #endif
  4. uniform sampler2D screenColorBuffer;
  5. varying vec2 texCoordVar;
  6. void main()
  7. {
  8. gl_FragColor = vec4(1.0-texture2D( screenColorBuffer, texCoordVar).xyz, 1.0);
  9. }