summaryrefslogtreecommitdiff
path: root/crates/renderer/src/assets/shaders/tcg_effect/frag.glsl
blob: a39bc87bef7ab389f25c7dc1a0cb6ff9ffc40ba1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
uniform sampler2D tex;

uniform int mode;
uniform float progress;

void main()
{
    vec2 tc = vec2(vertex_texcoord.x, 1.0 - vertex_texcoord.y);

    switch (mode) {
        // case 0: {
        //     vec4 texel = texture(tex, tc);
        //     texel.a = 1.0;
        //     texel.r = (texel.r + progress) / 2.0;
        //     frag_color = texel;
        // } break;
    default: {
        vec4 texel = texture(tex, tc);
        texel.a = 1.0;
        frag_color = texel;
    } break;
    }
}