blob: 41b0e4f1c2f41eb7d3e2580b67d4a9fde5e59909 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#version 440
layout(location = 0) in vec2 uv;
layout(location = 0) out vec4 fragColor;
layout(binding = 3) uniform texture2D tex;
layout(binding = 5) uniform sampler samp;
void main()
{
vec4 c = texture(sampler2D(tex, samp), uv);
c.rgb *= c.a;
fragColor = c;
}
|