summaryrefslogtreecommitdiffstats
path: root/cwd/assets/altcraft/shaders/frag/face.fs
blob: 30d44d29057e574fc673f39caae623af03518b95 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#version 330 core

in VS_OUT {
    vec3 Texture;
    vec3 Color;
} fs_in;

out vec4 fragColor;

uniform sampler2DArray textureAtlas;

void main() {
    vec4 color = texture(textureAtlas,fs_in.Texture);
    if (color.a < 0.3)
        discard;

    fragColor = vec4(color.rgb * fs_in.Color, 1.0);
}