1precision mediump float;
2
3varying vec2 varTex0;
4varying vec2 varTex1;
5varying vec2 varTex2;
6varying vec2 varTex3;
7
8void main() {
9    lowp vec4 tex =  texture2D(UNI_Tex0, varTex0);
10    lowp vec4 col = mix(UNI_clearColor, tex.rgba, tex.a);
11
12    tex = texture2D(UNI_Tex1, varTex1);
13    col = mix(col, tex.rgba, tex.a);
14
15    tex = texture2D(UNI_Tex2, varTex2);
16    col = mix(col, tex.rgba, tex.a);
17
18    tex = texture2D(UNI_Tex3, varTex3);
19    col = mix(col, tex.rgba, tex.a);
20
21    gl_FragColor = col;
22}
23
24