]> git.sesse.net Git - nageru/blob - cbcr_subsample.frag
3714f9959f3df874c7fcbad1b636cfd25a0935d8
[nageru] / cbcr_subsample.frag
1 #version 130
2
3 in vec2 tc0, tc1;
4 uniform sampler2D cbcr_tex;
5 out vec4 FragColor, FragColor2;
6 void main() {
7         FragColor = 0.5 * (texture(cbcr_tex, tc0) + texture(cbcr_tex, tc1));
8         FragColor2 = FragColor;
9 }