summaryrefslogtreecommitdiffstats
path: root/res/raw/pf4tex.glslf
blob: 32810dc68e58fd33a53ea8e378207d1ff6364ade (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
precision mediump float;

varying vec2 varTex0;
varying vec2 varTex1;
varying vec2 varTex2;
varying vec2 varTex3;

void main() {
    lowp vec4 tex =  texture2D(UNI_Tex0, varTex0);
    lowp vec4 col = mix(UNI_clearColor, tex.rgba, tex.a);

    tex = texture2D(UNI_Tex1, varTex1);
    col = mix(col, tex.rgba, tex.a);

    tex = texture2D(UNI_Tex2, varTex2);
    col = mix(col, tex.rgba, tex.a);

    tex = texture2D(UNI_Tex3, varTex3);
    col = mix(col, tex.rgba, tex.a);

    gl_FragColor = col;
}