Move calculation of normalized position for the vignette into the vertex shader.
[movit] / vignette_effect.vert
1 uniform vec2 PREFIX(aspect_correction);
2 varying vec2 PREFIX(normalized_pos);
3
4 vec2 FUNCNAME()
5 {
6         vec2 temp = LAST_INPUT();
7         PREFIX(normalized_pos) = (temp - PREFIX(center)) * PREFIX(aspect_correction);
8         return temp;
9 }