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