8#ifndef GALAXY_RESOURCE_EMBEDDED_VIDEOSHADER_HPP_
9#define GALAXY_RESOURCE_EMBEDDED_VIDEOSHADER_HPP_
21 layout(location = 0) in vec2 vertex;
28 gl_Position = vec4((vertex * 2.0 - 1.0) * vec2(1, -1), 0.0, 1.0);
41 uniform sampler2D u_texture_y;
42 uniform sampler2D u_texture_cb;
43 uniform sampler2D u_texture_cr;
46 1.16438, 0.00000, 1.59603, -0.87079,
47 1.16438, -0.39176, -0.81297, 0.52959,
48 1.16438, 2.01723, 0.00000, -1.08139,
54 float y = texture2D(texture_y, tex_coord).r;
55 float cb = texture2D(texture_cb, tex_coord).r;
56 float cr = texture2D(texture_cr, tex_coord).r;
58 io_frag = vec4(y, cb, cr, 1.0) * rec601;
constexpr const auto video_vert_shader
Video vertex shader.
constexpr const auto video_frag_shader
Video frag shader.