- char buf[1024];
- sprintf(buf,
- "const mat3 PREFIX(inv_ycbcr_matrix) = mat3(\n"
- " %.8f, %.8f, %.8f,\n"
- " %.8f, %.8f, %.8f,\n"
- " %.8f, %.8f, %.8f);\n",
- ycbcr_to_rgb[0], ycbcr_to_rgb[1], ycbcr_to_rgb[2],
- ycbcr_to_rgb[3], ycbcr_to_rgb[4], ycbcr_to_rgb[5],
- ycbcr_to_rgb[6], ycbcr_to_rgb[7], ycbcr_to_rgb[8]);
- frag_shader = buf;