2021-02-21 17:30:12 +00:00
|
|
|
#version 450
|
|
|
|
|
|
|
|
layout(set = 0, binding = 0) uniform sampler2D tex;
|
|
|
|
|
|
|
|
layout(location = 0) in vec2 uv;
|
|
|
|
layout(location = 0) out vec4 out_color;
|
|
|
|
|
|
|
|
layout(push_constant) uniform UBO {
|
|
|
|
layout(offset = 80) float alpha;
|
|
|
|
} data;
|
|
|
|
|
|
|
|
void main() {
|
|
|
|
out_color = textureLod(tex, uv, 0);
|
2021-10-16 14:31:48 +00:00
|
|
|
out_color *= data.alpha;
|
2021-02-21 17:30:12 +00:00
|
|
|
}
|
|
|
|
|