blob: 37719781802e58f3aa98c3d98d9426511604ec9d [file]
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
in vec2 interpolated_texture_coordinates;
out vec4 frag_color;
uniform sampler2D texture_contents;
void main() {
vec2 tex_coords = interpolated_texture_coordinates;
#ifdef IMPELLER_TARGET_OPENGLES
tex_coords.y = 1.0 - tex_coords.y;
#endif
frag_color = texture(texture_contents, tex_coords);
}