blob: 75b503630f9e484b2fd69091f0f0e63a494c9d7b [file] [log] [blame]
precision mediump float;
varying vec2 v_tex_coord_y;
varying vec2 v_tex_coord_uv;
uniform sampler2D texture_y;
uniform sampler2D texture_uv;
uniform mat4 to_rgb_color_matrix;
void main() {
vec4 untransformed_color = vec4(
texture2D(texture_y, v_tex_coord_y).a,
texture2D(texture_uv, v_tex_coord_uv).ba, 1.0);
gl_FragColor = untransformed_color * to_rgb_color_matrix;
}