IntegratedQuantum 9898db654b Specify the location of all shader in/out parameters.
also normalized the version and layout formatting
progress towards #1376
2025-05-02 14:53:57 +02:00

15 lines
254 B
GLSL

#version 460
layout(location = 0) out vec4 frag_color;
uniform sampler2D image;
layout(location = 0) in vec2 uv;
layout(location = 1) flat in vec4 fColor;
void main() {
frag_color = texture(image, uv)*fColor;
if(frag_color.a == 0) {
discard;
}
}