]> git.sesse.net Git - nageru/blob - futatabi/chroma_subsample.frag
Move the SRT Prometheus metrics into its own class, for reusability.
[nageru] / futatabi / chroma_subsample.frag
1 #version 450 core
2 in vec2 tc0, tc1;
3 uniform sampler2D cbcr_tex;
4 out float Cb, Cr;
5 void main() {
6         vec2 result = 0.5 * (texture(cbcr_tex, tc0).rg + texture(cbcr_tex, tc1).rg);
7         Cb = result.r;
8         Cr = result.g;
9 }
10