X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=flat_input.frag;h=d7c04cc5718f7fc5f0d38923932a601751426f41;hp=4bc055e8baec0a00f2552cea2bc65bc732e04ad8;hb=09c983894685554b41f622dadd40ac1a4efc527d;hpb=0dc1dfe6444a700ebd2c9f006cba000b90c3a7b0 diff --git a/flat_input.frag b/flat_input.frag index 4bc055e..d7c04cc 100644 --- a/flat_input.frag +++ b/flat_input.frag @@ -4,7 +4,7 @@ vec4 FUNCNAME(vec2 tc) { // OpenGL's origin is bottom-left, but most graphics software assumes // a top-left origin. Thus, for inputs that come from the user, // we flip the y coordinate. - tc.y = 1.0f - tc.y; + tc.y = 1.0 - tc.y; return texture2D(PREFIX(tex), tc); }