13 lines
217 B
GLSL
13 lines
217 B
GLSL
|
#version 450
|
||
|
|
||
|
layout(push_constant) uniform Alpha {
|
||
|
float value;
|
||
|
} alpha;
|
||
|
|
||
|
layout(location = 0) in vec3 color;
|
||
|
|
||
|
layout(location = 0) out vec4 frag_color;
|
||
|
|
||
|
void main() {
|
||
|
frag_color = vec4(color, alpha.value);
|
||
|
}
|