summaryrefslogtreecommitdiffstats
path: root/res/raw/pf5tex.glslf
blob: b1da1f684d03c9206161ca2b7c65f34e8f5ce68a (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
26
precision mediump float;

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

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);

    tex = texture2D(UNI_Tex4, varTex4);
    col = mix(col, tex.rgba, tex.a);
    gl_FragColor = col;
}