IntegratedQuantum c04819c5af
Compile shaders in the CI, to validate that their syntax is correct (#1427)
* Move to glslang's convention for shader file suffix

* Update ci.yml

* Oops, a mistake in the shader, how could that happen?

* Does the command error on its own?

* Update ci.yml

* Revert "Oops, a mistake in the shader, how could that happen?"

This reverts commit 869c3323f3d3b5fa607b40e7847c389a12b01f33.

* Update ci.yml
2025-05-10 12:32:51 +02:00

15 lines
274 B
GLSL

#version 460
layout(location = 0) out vec4 frag_color;
layout(binding = 0) 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;
}
}