summaryrefslogtreecommitdiff
path: root/crates/renderer/src/assets/shaders/tcg_screen/frag.glsl
blob: cb4a58f0689e16cf15177aba203219825f7acc40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
uniform sampler2D texture_data;

void main()
{
    vec2 tcfull = vec2(vertex_texcoord.x, vertex_texcoord.y);
    vec4 texel = texture(texture_data, tcfull);
    if (texel.a == 0.0) {
        discard;
    }
    texel.a = 1.0;
    frag_color = texel;
}