blob: da6e7480b6164a48eb53879650942d6371580231 [file] [log] [blame]
precision mediump float;
varying vec2 v_tex_coord_y;
varying vec2 v_tex_coord_u;
varying vec2 v_tex_coord_v;
uniform sampler2D texture_y;
uniform sampler2D texture_u;
uniform sampler2D texture_v;
uniform mat4 to_rgb_color_matrix;
void main() {
vec4 untransformed_color = vec4(
texture2D(texture_y, v_tex_coord_y).a,
texture2D(texture_u, v_tex_coord_u).a,
texture2D(texture_v, v_tex_coord_v).a, 1.0);
vec4 color = untransformed_color * to_rgb_color_matrix;
gl_FragColor = color;
}