Add support for Y'CbCr output split between multiple textures.
[movit] / footer.frag
1 void main()
2 {
3         vec4 color = INPUT(tc);
4 #if YCBCR_OUTPUT_PLANAR
5         gl_FragData[0] = color.rrra;
6         gl_FragData[1] = color.ggga;
7         gl_FragData[2] = color.bbba;
8 #elif YCBCR_OUTPUT_SPLIT_Y_AND_CBCR
9         gl_FragData[0] = color.rrra;
10         gl_FragData[1] = color.gbba;
11 #else
12         gl_FragColor = color;
13 #endif
14 }