UNPKG

687 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: !0 });
3var defaultVertex = `precision highp float;
4attribute vec2 aVertexPosition;
5attribute vec2 aTextureCoord;
6attribute vec4 aColor;
7attribute float aTextureId;
8
9uniform mat3 projectionMatrix;
10uniform mat3 translationMatrix;
11uniform vec4 tint;
12
13varying vec2 vTextureCoord;
14varying vec4 vColor;
15varying float vTextureId;
16
17void 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`;
25exports.default = defaultVertex;
26//# sourceMappingURL=texture.vert.js.map