2017-08-15 18:57:52 -04:00
|
|
|
// pathfinder/shaders/gles2/blit.vs.glsl
|
|
|
|
//
|
|
|
|
// Copyright (c) 2017 Mozilla Foundation
|
|
|
|
|
2017-08-19 19:52:14 -04:00
|
|
|
precision mediump float;
|
|
|
|
|
|
|
|
uniform mat4 uTransform;
|
2017-08-23 22:18:24 -04:00
|
|
|
uniform vec2 uTexScale;
|
2017-08-15 18:57:52 -04:00
|
|
|
|
|
|
|
attribute vec2 aPosition;
|
|
|
|
attribute vec2 aTexCoord;
|
|
|
|
|
|
|
|
varying vec2 vTexCoord;
|
|
|
|
|
|
|
|
void main() {
|
2017-08-19 19:52:14 -04:00
|
|
|
gl_Position = uTransform * vec4(aPosition, 0.0, 1.0);
|
2017-08-23 22:18:24 -04:00
|
|
|
vTexCoord = aTexCoord * uTexScale;
|
2017-08-15 18:57:52 -04:00
|
|
|
}
|