14 lines
272 B
GLSL
14 lines
272 B
GLSL
#version 450
|
|
|
|
layout(location = 0) in vec2 inUV;
|
|
layout(location = 0) out vec4 fragColor;
|
|
|
|
layout(set = 2, binding = 0) uniform sampler2D texture_sampler;
|
|
|
|
void main() {
|
|
fragColor = texture(texture_sampler, inUV);
|
|
if (fragColor.a < 0.5) {
|
|
discard;
|
|
}
|
|
}
|