Remove some unneeded conversions from ResampleEffect. Speeds up texture generation...
[movit] / overlay_matte_effect.frag
1 vec4 FUNCNAME(vec2 tc) {
2         vec4 orig = INPUT1(tc);
3         vec4 blurred = INPUT2(tc);
4         float luminance = clamp(dot(orig.rgb, vec3(0.2126, 0.7152, 0.0722)), 0.0, 1.0);
5         return mix(orig, blurred, luminance * vec4(PREFIX(blurred_mix_amount)));
6 }