mirror of
https://github.com/PixelGuys/Cubyz.git
synced 2025-09-18 16:59:48 -04:00

* 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
15 lines
274 B
GLSL
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;
|
|
}
|
|
}
|