precision mediump float;
varying vec2 position;
uniform sampler2D webcam;
void main() {
vec2 p = position;
gl_FragColor = texture2D(webcam, p);
}
precision mediump float;
varying vec2 position;
uniform sampler2D webcam;
void main() {
vec2 p = position;
float size = 0.2;
p.x = mod(p.x, size);
gl_FragColor = texture2D(webcam, p);
}
precision mediump float;
varying vec2 position;
uniform sampler2D webcam;
void main() {
vec2 p = position;
float size = 0.2;
p.x = mod(p.x, size);
p.x = p.x - size/2.;
gl_FragColor = texture2D(webcam, p);
}
precision mediump float;
varying vec2 position;
uniform sampler2D webcam;
void main() {
vec2 p = position;
float size = 0.2;
p.x = mod(p.x, size);
p.x = abs(p.x - size/2.);
gl_FragColor = texture2D(webcam, p);
}
precision mediump float;
varying vec2 position;
uniform sampler2D webcam;
uniform float time;
void main() {
vec2 p = position;
float size = 0.2;
p.x = mod(p.x, size);
p.x = abs(p.x - size/2.);
p.x = fract(p.x + time/6.);
gl_FragColor = texture2D(webcam, p);
}
precision mediump float;
varying vec2 position;
uniform sampler2D webcam;
uniform float time;
float wrap(float x) {
return abs(mod(x, 2.)-1.);
}
void main() {
vec2 p = position;
float size = 0.2;
p.x = mod(p.x, size);
p.x = abs(p.x - size/2.);
p.x = wrap(p.x + time/6.);
gl_FragColor = texture2D(webcam, p);
}
precision mediump float;
varying vec2 position;
uniform sampler2D webcam;
uniform float time;
float wrap(float x) {
return abs(mod(x, 2.)-1.);
}
void main() {
vec2 p = position;
float size = 0.1;
p.x = mod(p.x, size);
p.x = abs(p.x - size/2.);
p.x = wrap(p.x + time/6.);
gl_FragColor = texture2D(webcam, p);
}
precision mediump float;
varying vec2 position;
uniform sampler2D webcam;
uniform float time;
float wrap(float x) {
return abs(mod(x, 2.)-1.);
}
void main() {
vec2 p = position;
float size = 0.04;
p.x = mod(p.x, size);
p.x = abs(p.x - size/2.);
p.x = wrap(p.x + time/20.);
gl_FragColor = texture2D(webcam, p);
}