File: colorspace_conversion_effect.frag

package info (click to toggle)
movit 1.6.3-5
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye
  • size: 3,080 kB
  • sloc: cpp: 16,502; sh: 3,254; makefile: 164
file content (8 lines) | stat: -rw-r--r-- 246 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
// Colorspace conversion (needs to be done in linear space).
// The matrix is computed on the host and baked into the shader at compile time.

vec4 FUNCNAME(vec2 tc) {
	vec4 x = INPUT(tc);
	x.rgb = PREFIX(conversion_matrix) * x.rgb;
	return x;
}