]> git.sesse.net Git - movit/blob - flat_input.frag
Loosen up a boundary in DitherEffectTest by 10%.
[movit] / flat_input.frag
1 uniform sampler2D PREFIX(tex);
2
3 vec4 FUNCNAME(vec2 tc) {
4         // OpenGL's origin is bottom-left, but most graphics software assumes
5         // a top-left origin. Thus, for inputs that come from the user,
6         // we flip the y coordinate.
7         tc.y = 1.0 - tc.y;
8
9         return texture2D(PREFIX(tex), tc);
10 }