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

layout (binding = 0) uniform sampler2D samplerColor;

layout (location = 0) in vec2 inUV;

layout (location = 0) out vec4 outFragColor;

void main()
{
  vec4 color = texture(samplerColor, inUV);
  if (color.w == 0) {
    discard;
  }
  outFragColor = color;
}