blob: c932e398059dc1cbe9782dcd664adfb6d6ec1b2a [file] [log] [blame]
// 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.
#include <impeller/conversions.glsl>
#include <impeller/types.glsl>
uniform FrameInfo {
mat4 mvp;
float depth;
float texture_sampler_y_coord_scale;
}
frame_info;
in vec2 position;
out vec2 v_texture_coords;
void main() {
gl_Position = frame_info.mvp * vec4(position, 0.0, 1.0);
gl_Position /= gl_Position.w;
gl_Position.z = frame_info.depth;
v_texture_coords =
IPRemapCoords(position, frame_info.texture_sampler_y_coord_scale);
}