medias 0.6.1

TV media player on bare DRM/KMS: Vulkan UI plane over libmpv video, for local files, UPnP/DLNA servers and YouTube, controlled by HDMI-CEC remote, evdev or terminal
1
2
3
4
5
6
7
8
9
10
11
12
#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;
}