2019-06-05 20:20:12 -04:00
|
|
|
#version 330
|
2019-02-04 19:04:13 -05:00
|
|
|
|
2019-06-05 20:20:12 -04:00
|
|
|
// pathfinder/shaders/post.vs.glsl
|
2019-02-04 19:04:13 -05:00
|
|
|
//
|
|
|
|
// Copyright © 2019 The Pathfinder Project Developers.
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
|
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
|
|
// option. This file may not be copied, modified, or distributed
|
|
|
|
// except according to those terms.
|
|
|
|
|
|
|
|
precision highp float;
|
|
|
|
|
2019-06-05 17:35:46 -04:00
|
|
|
in ivec2 aPosition;
|
2019-02-04 19:04:13 -05:00
|
|
|
|
|
|
|
out vec2 vTexCoord;
|
|
|
|
|
|
|
|
void main() {
|
2019-06-05 17:35:46 -04:00
|
|
|
vTexCoord = vec2(aPosition);
|
|
|
|
gl_Position = vec4(vec2(aPosition) * 2.0 - 1.0, 0.0, 1.0);
|
2019-02-04 19:04:13 -05:00
|
|
|
}
|