Files
spacefarer/data/shaders/basic.frag
duck 855194acea Initial commit for tabletop
We'll branch off of main game for a cool quick side project idea for a moment
2025-08-29 01:59:33 +05:00

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;
}
}