]> git.sesse.net Git - movit/blob - colorspace_conversion_effect.frag
Make a new system for meta-effects, and convert the blur to use it. Hides the two...
[movit] / colorspace_conversion_effect.frag
1 // Colorspace conversion (needs to be done in linear space).
2 // The matrix is computed on the host and baked into the shader at compile time.
3
4 vec4 FUNCNAME(vec2 tc) {
5         vec4 x = LAST_INPUT(tc);
6         x.rgb = PREFIX(conversion_matrix) * x.rgb;
7         return x;
8 }