blob: bc5b2f75a515e612e4ea876f83d50aec5e67f936 [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.
#include <impeller/transform.glsl>
#include <impeller/types.glsl>
uniform FrameInfo {
mat4 mvp;
float depth;
mat4 matrix;
}
frame_info;
in vec2 position;
out vec2 v_position;
void main() {
gl_Position = frame_info.mvp * vec4(position, frame_info.depth, 1.0);
v_position = IPVec2TransformPosition(frame_info.matrix, position);
}