Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- uniform sampler2D tex0;
- varying vec2 tcoord;
- void main() {
- // Sample the input pixel
- vec2 uv = tcoord;
- vec4 c = texture2D(tex0,uv);
- uv.y = 1.0-uv.y;
- c+= texture2D(tex0,uv);
- uv.x = 1.0-uv.x;
- c+= texture2D(tex0,uv);
- uv.y = 1.0-uv.y;
- c+= texture2D(tex0,uv);
- gl_FragColor = c/4.0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement