summaryrefslogtreecommitdiff
path: root/assets/shaders/texture.frag
blob: 44e3dd617f1dff081259b58f09e6d2b90c7f41be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# version 450

layout(location = 0) in vec4 fragColor;
layout(location = 1) in vec3 fragTexCoord;

layout(location = 0) out vec4 outColor;

layout(binding = 1) uniform sampler2D texSampler;

void main() {
  vec4 color = texture(texSampler, fragTexCoord.xy);
  if (color.w == 0) {
    discard;
  }
  outColor = color;
}