| 1 |
#version 440 |
| 2 |
|
| 3 |
layout(location = 0) in vec2 v_texcoord; |
| 4 |
layout(location = 0) out vec4 fragColor; |
| 5 |
|
| 6 |
layout(binding = 1) uniform sampler2D tex; |
| 7 |
|
| 8 |
void main() |
| 9 |
{ |
| 10 |
vec4 c = texture(tex, v_texcoord); |
| 11 |
fragColor = vec4(c.rgb * c.a, c.a); |
| 12 |
} |