You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
301 B
17 lines
301 B
#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);
|
|
out_color *= data.alpha;
|
|
}
|
|
|