1 | var defaultVertex = `precision highp float;
|
2 | attribute vec2 aVertexPosition;
|
3 | attribute vec2 aTextureCoord;
|
4 | attribute vec4 aColor;
|
5 | attribute float aTextureId;
|
6 |
|
7 | uniform mat3 projectionMatrix;
|
8 | uniform mat3 translationMatrix;
|
9 | uniform vec4 tint;
|
10 |
|
11 | varying vec2 vTextureCoord;
|
12 | varying vec4 vColor;
|
13 | varying float vTextureId;
|
14 |
|
15 | void main(void){
|
16 | gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
|
17 |
|
18 | vTextureCoord = aTextureCoord;
|
19 | vTextureId = aTextureId;
|
20 | vColor = aColor * tint;
|
21 | }
|
22 | `;
|
23 | export {
|
24 | defaultVertex as default
|
25 | };
|
26 |
|