Advertisement
netgrind

ghostmirror

Oct 27th, 2014
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. uniform sampler2D tex0;
  2. varying vec2 tcoord;
  3. void main() {
  4. // Sample the input pixel
  5. vec2 uv = tcoord;
  6. vec4 c = texture2D(tex0,uv);
  7. uv.y = 1.0-uv.y;
  8. c+= texture2D(tex0,uv);
  9. uv.x = 1.0-uv.x;
  10. c+= texture2D(tex0,uv);
  11. uv.y = 1.0-uv.y;
  12. c+= texture2D(tex0,uv);
  13. gl_FragColor = c/4.0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement