2020-05-08 00:26:41 -04:00
|
|
|
#version {{version}}
|
|
|
|
// Automatically generated from files in pathfinder/shaders/. Do not edit!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
precision highp float;
|
2020-05-08 19:59:01 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-08 00:26:41 -04:00
|
|
|
|
|
|
|
uniform vec4 uRect;
|
|
|
|
uniform vec2 uFramebufferSize;
|
|
|
|
|
|
|
|
in ivec2 aPosition;
|
|
|
|
|
|
|
|
void main(){
|
|
|
|
vec2 position = mix(uRect . xy, uRect . zw, vec2(aPosition))/ uFramebufferSize * 2.0 - 1.0;
|
|
|
|
gl_Position = vec4(position . x, - position . y, 0.0, 1.0);
|
|
|
|
}
|
|
|
|
|