projects
/
movit
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Release Movit 1.6.3.
[movit]
/
saturation_effect.frag
1
// Saturate/desaturate (in linear space).
2
3
vec4 FUNCNAME(vec2 tc) {
4
vec4 x = INPUT(tc);
5
6
float luminance = dot(x.rgb, vec3(0.2126, 0.7152, 0.0722));
7
x.rgb = mix(vec3(luminance), x.rgb, PREFIX(saturation));
8
9
return x;
10
}