UNPKG

619 BJavaScriptView Raw
1var defaultVertex = `precision highp float;
2attribute vec2 aVertexPosition;
3attribute vec2 aTextureCoord;
4attribute vec4 aColor;
5attribute float aTextureId;
6
7uniform mat3 projectionMatrix;
8uniform mat3 translationMatrix;
9uniform vec4 tint;
10
11varying vec2 vTextureCoord;
12varying vec4 vColor;
13varying float vTextureId;
14
15void 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`;
23export {
24 defaultVertex as default
25};
26//# sourceMappingURL=texture.vert.mjs.map