blob: 2084f1c4f90b9ccec0bb441dfab4fbcc08a526c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#ifdef GL_ES
precision mediump float;
#endif
uniform vec2 resolution;
uniform float time;
uniform float m;
//uniform sampler2D backbuffer;
uniform sampler2D image1;
uniform sampler2D image2;
uniform sampler2D image3;
//uniform vec2 u_tex0Resolution;
float random (in float x) {
return fract(sin(x)*43758.5453123)-0.5;
}
void main (void) {
vec2 st = gl_FragCoord.xy/resolution.xy;
vec4 i1 = texture2D(image1,st*0.8);
vec4 i2 = texture2D(image2,st);
gl_FragColor = mix(i1,i2,m);
//gl_FragColor = texture2D(image1,st*sin(time*2.));
}
|