#version 450
// Translucent overlay element; alpha pulses with t. Premultiplied in frag.
layout(location = 0) in vec2 in_pos;
layout(location = 1) in vec3 in_color;
layout(location = 0) out vec3 frag_color;
layout(location = 1) out float frag_alpha;
layout(push_constant) uniform Push { float t; } pc;
void main() {
gl_Position = vec4(in_pos, 0.0, 1.0);
frag_color = in_color;
frag_alpha = 0.45 + 0.35 * pc.t;
}