blob: 0f9c52f12c23daa986ffd1378645eeaa811d15cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#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;
}
|