Comparing version 0.0.27 to 0.0.28
@@ -44,5 +44,11 @@ "use strict"; | ||
/** | ||
* Указывает, как часто данные буфера будут изменяться. | ||
* @type {Buffer.StaticDraw | Buffer.DynamicDraw} | ||
*/ | ||
this.drawType = Buffer.StaticDraw; | ||
/** | ||
* Инициализация буфера происходит в момент первого рендеринга. | ||
* Текущий WebGl контекст сохраняется в этой переменной. | ||
* Если конекст меняется, буфер необходимо инициализровать заного. | ||
* Если конекст меняется, буфер необходимо инициализировать заново. | ||
* @type {?WebGLRenderingContext} | ||
@@ -157,2 +163,18 @@ * @ignore | ||
/** | ||
* Заменяет часть буфера новыми данными и отправляет их в видеокарту | ||
* @param {WebGLRenderingContext} gl | ||
* @param {Number} index Индекс, с которого начать замену | ||
* @param {TypedArray} data Новые данные | ||
*/ | ||
}, { | ||
key: "subData", | ||
value: function subData(gl, index, data) { | ||
gl.bindBuffer(this._toGlParam(gl, this.type), this._glBuffer); | ||
gl.bufferSubData(this._toGlParam(gl, this.type), index * this.itemSize, data); | ||
return this; | ||
} | ||
/** | ||
* Кладёт данные в видеокарту | ||
@@ -168,3 +190,3 @@ * @param {WebGLRenderingContext} gl | ||
gl.bindBuffer(this._toGlParam(gl, this.type), this._glBuffer); | ||
gl.bufferData(this._toGlParam(gl, this.type), this._array, gl.STATIC_DRAW); | ||
gl.bufferData(this._toGlParam(gl, this.type), this._array, this._toGlParam(gl, this.drawType)); | ||
this._preparedGlContext = gl; | ||
@@ -208,2 +230,8 @@ } | ||
} | ||
if (param === Buffer.StaticDraw) { | ||
return gl.STATIC_DRAW; | ||
} | ||
if (param === Buffer.DynamicDraw) { | ||
return gl.DYNAMIC_DRAW; | ||
} | ||
} | ||
@@ -218,4 +246,7 @@ }]); | ||
Buffer.StaticDraw = 10; | ||
Buffer.DynamicDraw = 11; | ||
exports.default = Buffer; | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9CdWZmZ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stGA0LDRidCw0LXRgiDRjdC70LXQvNC10L3RgiDQuNC3INC80LDRgdGB0LjQstCwINC00LDQvdC90YvRhVxuICAgICAqIEBwYXJhbSB7TnVtYmVyfSBpbmRleCDQndC+0LzQtdGAINGN0LvQtdC80LXQvdGC0LAg0LIg0LzQsNGB0YHQuNCy0LUg0LTQsNC90L3Ri9GFXG4gICAgICogQHJldHVybnMge1R5cGVkQXJyYXl9XG4gICAgICovXG4gICAgZ2V0RWxlbWVudChpbmRleCkge1xuICAgICAgICByZXR1cm4gdGhpcy5fYXJyYXkuc3ViYXJyYXkoaW5kZXggKiB0aGlzLml0ZW1TaXplLCAoaW5kZXggKyAxKSAqIHRoaXMuaXRlbVNpemUpO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqINCS0L7Qt9Cy0YDQsNGJ0LDQtdGCINGC0YDQvtC50LrRgyDRjdC70LXQvNC10L3RgtC+0LIg0LjQtyDQvNCw0YHRgdC40LLQsCDQtNCw0L3QvdGL0YVcbiAgICAgKiBAcGFyYW0ge051bWJlcn0gaW5kZXgg0JjQvdC00LXQutGBXG4gICAgICogQHJldHVybnMge1R5cGVkQXJyYXlbXX1cbiAgICAgKi9cbiAgICBnZXRUcmlhbmdsZShpbmRleCkge1xuICAgICAgICBpbmRleCAqPSAzO1xuXG4gICAgICAgIHJldHVybiBbXG4gICAgICAgICAgICB0aGlzLmdldEVsZW1lbnQoaW5kZXgpLFxuICAgICAgICAgICAgdGhpcy5nZXRFbGVtZW50KGluZGV4ICsgMSksXG4gICAgICAgICAgICB0aGlzLmdldEVsZW1lbnQoaW5kZXggKyAyKVxuICAgICAgICBdO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqINCa0L7QvdC60LDRgtC10L3QuNGA0YPQtdGCINC00LDQvdC90YvQuSDQsdGD0YTQtdGAINGBINC00YDRg9Cz0LjQvC5cbiAgICAgKiDQntGB0YLQvtGA0L7QttC90L4sINC80LXRgtC+0LQg0L3QtSDQv9GA0L7QstC10YDRj9C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DQv9C10YDQtdC00LDRh9C4INC80LDRgdGB0LjQstCwINC00LDQvdC90YvRhSxcbiAgICAgICAgICog0YLQsNC6INC4INC00LvRjyDQv9C10YDQtdC00LDRh9C4INC40L3QtNC10LrRgdC+0LIg0Y3Qu9C10LzQtdC90YLQvtCyINC40Lcg0LTQsNC90L3Ri9GFLlxuICAgICAgICAgKiBAdHlwZSB7QnVmZmVyLkFycmF5QnVmZmVyIHwgQnVmZmVyLkVsZW1lbnRBcnJheUJ1ZmZlcn1cbiAgICAgICAgICovXG4gICAgICAgIHRoaXMudHlwZSA9IEJ1ZmZlci5BcnJheUJ1ZmZlcjtcblxuICAgICAgICAvKipcbiAgICAgICAgICog0KPQutCw0LfRi9Cy0LDQtdGCLCDQutCw0Log0YfQsNGB0YLQviDQtNCw0L3QvdGL0LUg0LHRg9GE0LXRgNCwINCx0YPQtNGD0YIg0LjQt9C80LXQvdGP0YLRjNGB0Y8uXG4gICAgICAgICAqIEB0eXBlIHtCdWZmZXIuU3RhdGljRHJhdyB8IEJ1ZmZlci5EeW5hbWljRHJhd31cbiAgICAgICAgICovXG4gICAgICAgIHRoaXMuZHJhd1R5cGUgPSBCdWZmZXIuU3RhdGljRHJhdztcblxuICAgICAgICAvKipcbiAgICAgICAgICog0JjQvdC40YbQuNCw0LvQuNC30LDRhtC40Y8g0LHRg9GE0LXRgNCwINC/0YDQvtC40YHRhdC+0LTQuNGCINCyINC80L7QvNC10L3RgiDQv9C10YDQstC+0LPQviDRgNC10L3QtNC10YDQuNC90LPQsC5cbiAgICAgICAgICog0KLQtdC60YPRidC40LkgV2ViR2wg0LrQvtC90YLQtdC60YHRgiDRgdC+0YXRgNCw0L3Rj9C10YLRgdGPINCyINGN0YLQvtC5INC/0LXRgNC10LzQtdC90L3QvtC5LlxuICAgICAgICAgKiDQldGB0LvQuCDQutC+0L3QtdC60YHRgiDQvNC10L3Rj9C10YLRgdGPLCDQsdGD0YTQtdGAINC90LXQvtCx0YXQvtC00LjQvNC+INC40L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R1cm4gZ2wuRFlOQU1JQ19EUkFXOyB9XG4gICAgfVxufVxuXG5CdWZmZXIuQXJyYXlCdWZmZXIgPSAxO1xuQnVmZmVyLkVsZW1lbnRBcnJheUJ1ZmZlciA9IDI7XG5cbkJ1ZmZlci5TdGF0aWNEcmF3ID0gMTA7XG5CdWZmZXIuRHluYW1pY0RyYXcgPSAxMTtcblxuZXhwb3J0IGRlZmF1bHQgQnVmZmVyO1xuIl19 |
12
index.js
@@ -39,2 +39,6 @@ 'use strict'; | ||
var _MultiSpriteProgram = require('./programs/MultiSpriteProgram'); | ||
var _MultiSpriteProgram2 = _interopRequireDefault(_MultiSpriteProgram); | ||
var _Mesh = require('./Mesh'); | ||
@@ -48,2 +52,6 @@ | ||
var _MultiSprite = require('./MultiSprite'); | ||
var _MultiSprite2 = _interopRequireDefault(_MultiSprite); | ||
var _Scene = require('./Scene'); | ||
@@ -111,5 +119,7 @@ | ||
Sprite: _Sprite2.default, | ||
MultiSprite: _MultiSprite2.default, | ||
BasicMeshProgram: _BasicMeshProgram2.default, | ||
ComplexMeshProgram: _ComplexMeshProgram2.default, | ||
SpriteProgram: _SpriteProgram2.default, | ||
MultiSpriteProgram: _MultiSpriteProgram2.default, | ||
Scene: _Scene2.default, | ||
@@ -134,2 +144,2 @@ Texture: _Texture2.default, | ||
module.exports = dgl; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9pbmRleC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7SUFvQlk7Ozs7Ozs7Ozs7Ozs7QUFLWixtQkFBUyxVQUFULEdBQXNCLE9BQVEsWUFBUCxLQUF3QixXQUF4QixHQUF1QyxZ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bmVkJykgPyBGbG9hdDY0QXJyYXkgOiBBcnJheTtcblxuY29uc3QgZGdsID0ge1xuICAgIFJlbmRlcmVyLFxuICAgIE9iamVjdDNELFxuICAgIFBlcnNwZWN0aXZlQ2FtZXJhLFxuICAgIE9ydGhvZ3JhcGhpY0NhbWVyYSxcbiAgICBCdWZmZXIsXG4gICAgR2VvbWV0cnksXG4gICAgTWVzaCxcbiAgICBTcHJpdGUsXG4gICAgTXVsdGlTcHJpdGUsXG4gICAgQmFzaWNNZXNoUHJvZ3JhbSxcbiAgICBDb21wbGV4TWVzaFByb2dyYW0sXG4gICAgU3ByaXRlUHJvZ3JhbSxcbiAgICBNdWx0aVNwcml0ZVByb2dyYW0sXG4gICAgU2NlbmUsXG4gICAgVGV4dHVyZSxcbiAgICBBbWJpZW50TGlnaHQsXG4gICAgRGlyZWN0aW9uYWxMaWdodCxcbiAgICBSYXljYXN0ZXIsXG4gICAgUmF5LFxuICAgIFBsYW5lLFxuICAgIEZydXN0dW0sXG4gICAgQm94LFxuICAgIExpbmUzLFxuICAgIE1hdGg6IG1hdGgsXG4gICAgdmVjMyxcbiAgICBtYXQzLFxuICAgIHZlYzIsXG4gICAgbWF0NCxcbiAgICBxdWF0XG59O1xuXG5tb2R1bGUuZXhwb3J0cyA9IGRnbDtcbiJdfQ== |
{ | ||
"name": "2gl", | ||
"version": "0.0.27", | ||
"version": "0.0.28", | ||
"description": "WebGL library for 2GIS projects", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -20,2 +20,5 @@ # 2gl [![Build Status](https://travis-ci.org/2gis/2gl.svg?branch=master)](https://travis-ci.org/2gis/2gl) [![Coverage Status](https://coveralls.io/repos/2gis/2gl/badge.svg?branch=master&service=github)](https://coveralls.io/github/2gis/2gl?branch=master) | ||
#### Установка | ||
* `npm install 2gl` | ||
#### Development | ||
@@ -26,2 +29,3 @@ * `npm install` | ||
#### Release | ||
* `npm run build` | ||
* `npm version patch` - поднять патч версию | ||
* `npm run pub` - собрать проект, отправить в npm, вернуть в исходное состояние |
@@ -13,2 +13,6 @@ 'use strict'; | ||
var _MultiSpriteRenderer = require('./MultiSpriteRenderer'); | ||
var _MultiSpriteRenderer2 = _interopRequireDefault(_MultiSpriteRenderer); | ||
var _TransparentRenderer = require('./TransparentRenderer'); | ||
@@ -59,2 +63,3 @@ | ||
this._spriteRenderer = new _SpriteRenderer2.default(); | ||
this._multiSpriteRenderer = new _MultiSpriteRenderer2.default(this); | ||
this._transparentRenderer = new _TransparentRenderer2.default(); | ||
@@ -149,3 +154,4 @@ | ||
transparent: [], | ||
sprites: [] | ||
sprites: [], | ||
multiSprites: [] | ||
}; | ||
@@ -196,2 +202,4 @@ | ||
this._multiSpriteRenderer.render(state, typedObjects.multiSprites); | ||
return this; | ||
@@ -244,2 +252,2 @@ } | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9yZW5kZXJlci9SZW5kZXJlci5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0lBZ0JNO0FBQ0YsYUFERSxRQUNGLENBQVksT0FBWixFQUFxQjs4QkFEbkIsVUFDbUI7O0FBQ2pCLGFBQUssVUFBTCxHQUFrQixPQUFPLFFBQVEsU0FBUixLQUFzQixRQUE3QixHQUNkLFNBQVMsY0FBVCxDQUF3QixRQUFRLFNBQVIsQ0FEVixHQUMrQixRQUFRLFNBQVIsQ0FGaEM7O0FBSWpCLGFBQUssV0FBTCxHQUFtQixRQUFRLFVBQVIsSUFBc0IsQ0FBdEIsQ0FKRjtBQUtqQixhQUFLLFVBQUwsR0FBa0IsUUFBUSxTQUFSLEtBQXNCLFNBQXRCLEdBQWtDLFFBQVEsU0FBUixHQUFvQixJQUF0RDs7Ozs7O0FBTEQsWUFXakIsQ0FBSyxTQUFMLEdBQWlCLFFBQVEsU0F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yYXl9IHNwcml0ZXMg0KHQv9GA0LDQudGC0YtcbiAqL1xuIl19 |
"use strict"; | ||
module.exports = "\nprecision mediump float;\n\nuniform float uColorAlpha;\nvarying vec3 vColor;\n\nvoid main(void) {\n gl_FragColor = vec4(vColor.rgb, uColorAlpha);\n}\n"; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9zaGFkZXJzL2Jhc2ljLmZyYWcuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxPQUFPLE9BQVAiLCJmaWxlIjoiYmFzaWMuZnJhZy5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gYFxucHJlY2lzaW9uIG1lZGl1bXAgZmxvYXQ7XG5cbnVuaWZvcm0gZmxvYXQgdUNvbG9yQWxwaGE7XG52YXJ5aW5nIHZlYzMgdkNvbG9yO1xuXG52b2lkIG1haW4odm9pZCkge1xuICAgIGdsX0ZyYWdDb2xvciA9IHZlYzQodkNvbG9yLnJnYiwgdUNvbG9yQWxwaGEpO1xufVxuYDsiXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9zaGFkZXJzL2Jhc2ljLmZyYWcuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxPQUFPLE9BQVAiLCJmaWxlIjoiYmFzaWMuZnJhZy5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gYFxucHJlY2lzaW9uIG1lZGl1bXAgZmxvYXQ7XG5cbnVuaWZvcm0gZmxvYXQgdUNvbG9yQWxwaGE7XG52YXJ5aW5nIHZlYzMgdkNvbG9yO1xuXG52b2lkIG1haW4odm9pZCkge1xuICAgIGdsX0ZyYWdDb2xvciA9IHZlYzQodkNvbG9yLnJnYiwgdUNvbG9yQWxwaGEpO1xufVxuYDtcbiJdfQ== |
"use strict"; | ||
module.exports = "\nattribute vec3 position;\n\nuniform mat4 uPosition;\nuniform mat4 uCamera;\nuniform vec3 uColor;\nuniform vec3 uEmissive;\n\nvarying vec3 vColor;\n\nvoid main(void) {\n vColor = uColor;\n\n gl_Position = uCamera * uPosition * vec4(position, 1.0);\n}\n"; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9zaGFkZXJzL2Jhc2ljLnZlcnQuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxPQUFPLE9BQVAiLCJmaWxlIjoiYmFzaWMudmVydC5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gYFxuYXR0cmlidXRlIHZlYzMgcG9zaXRpb247XG5cbnVuaWZvcm0gbWF0NCB1UG9zaXRpb247XG51bmlmb3JtIG1hdDQgdUNhbWVyYTtcbnVuaWZvcm0gdmVjMyB1Q29sb3I7XG51bmlmb3JtIHZlYzMgdUVtaXNzaXZlO1xuXG52YXJ5aW5nIHZlYzMgdkNvbG9yO1xuXG52b2lkIG1haW4odm9pZCkge1xuICAgIHZDb2xvciA9IHVDb2xvcjtcblxuICAgIGdsX1Bvc2l0aW9uID0gdUNhbWVyYSAqIHVQb3NpdGlvbiAqIHZlYzQocG9zaXRpb24sIDEuMCk7XG59XG5gOyJdfQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9zaGFkZXJzL2Jhc2ljLnZlcnQuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxPQUFPLE9BQVAiLCJmaWxlIjoiYmFzaWMudmVydC5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gYFxuYXR0cmlidXRlIHZlYzMgcG9zaXRpb247XG5cbnVuaWZvcm0gbWF0NCB1UG9zaXRpb247XG51bmlmb3JtIG1hdDQgdUNhbWVyYTtcbnVuaWZvcm0gdmVjMyB1Q29sb3I7XG51bmlmb3JtIHZlYzMgdUVtaXNzaXZlO1xuXG52YXJ5aW5nIHZlYzMgdkNvbG9yO1xuXG52b2lkIG1haW4odm9pZCkge1xuICAgIHZDb2xvciA9IHVDb2xvcjtcblxuICAgIGdsX1Bvc2l0aW9uID0gdUNhbWVyYSAqIHVQb3NpdGlvbiAqIHZlYzQocG9zaXRpb24sIDEuMCk7XG59XG5gO1xuIl19 |
"use strict"; | ||
module.exports = "\nprecision mediump float;\n\n#ifdef USE_TEXTURE\n uniform sampler2D uTexture;\n varying vec2 vTextureCoord;\n varying float vTextureEnable;\n#endif\n\nuniform float uColorAlpha;\nvarying vec3 vLightWeighting;\nvarying vec3 vColor;\nvarying vec3 vEmissive;\n\nvoid main(void) {\n vec4 color = vec4(vColor.rgb, uColorAlpha);\n\n #ifdef USE_TEXTURE\n if (vTextureEnable > 0.5) {\n vec4 textureColor = texture2D(uTexture, vec2(vTextureCoord.s, vTextureCoord.t));\n color = vec4(textureColor.rgb * color.rgb, color.a);\n }\n #endif\n\n gl_FragColor = vec4(color.rgb * vLightWeighting + vEmissive, color.a);\n}\n"; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9zaGFkZXJzL2NvbXBsZXguZnJhZy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLE9BQU8sT0FBUCIsImZpbGUiOiJjb21wbGV4LmZyYWcuanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IGBcbnByZWNpc2lvbiBtZWRpdW1wIGZsb2F0O1xuXG4jaWZkZWYgVVNFX1RFWFRVUkVcbiAgICB1bmlmb3JtIHNhbXBsZXIyRCB1VGV4dHVyZTtcbiAgICB2YXJ5aW5nIHZlYzIgdlRleHR1cmVDb29yZDtcbiAgICB2YXJ5aW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V4dHVyZTtcbiAgICB2YXJ5aW5nIHZlYzIgdlRleHR1cmVDb29yZDtcbiAgICB2YXJ5aW5nIGZsb2F0IHZUZXh0dXJlRW5hYmxlO1xuI2VuZGlmXG5cbnVuaWZvcm0gZmxvYXQgdUNvbG9yQWxwaGE7XG52YXJ5aW5nIHZlYzMgdkxpZ2h0V2VpZ2h0aW5nO1xudmFyeWluZyB2ZWMzIHZDb2xvcjtcbnZhcnlpbmcgdmVjMyB2RW1pc3NpdmU7XG5cbnZvaWQgbWFpbih2b2lkKSB7XG4gICAgdmVjNCBjb2xvciA9IHZlYzQodkNvbG9yLnJnYiwgdUNvbG9yQWxwaGEpO1xuXG4gICAgI2lmZGVmIFVTRV9URVhUVVJFXG4gICAgICAgIGlmICh2VGV4dHVyZUVuYWJsZSA+IDAuNSkge1xuICAgICAgICAgICAgdmVjNCB0ZXh0dXJlQ29sb3IgPSB0ZXh0dXJlMkQodVRleHR1cmUsIHZlYzIodlRleHR1cmVDb29yZC5zLCB2VGV4dHVyZUNvb3JkLnQpKTtcbiAgICAgICAgICAgIGNvbG9yID0gdmVjNCh0ZXh0dXJlQ29sb3IucmdiICogY29sb3IucmdiLCBjb2xvci5hKTtcbiAgICAgICAgfVxuICAgICNlbmRpZlxuXG4gICAgZ2xfRnJhZ0NvbG9yID0gdmVjNChjb2xvci5yZ2IgKiB2TGlnaHRXZWlnaHRpbmcgKyB2RW1pc3NpdmUsIGNvbG9yLmEpO1xufVxuYDtcbiJdfQ== |
"use strict"; | ||
module.exports = "\nattribute vec3 position;\nattribute vec3 color;\nattribute vec3 emissive;\n\n#ifdef USE_TEXTURE\n attribute vec2 texture;\n attribute float textureEnable;\n varying vec2 vTextureCoord;\n varying float vTextureEnable;\n#endif\n\n#if DIR_LIGHT_NUM > 0\n attribute vec3 normal;\n uniform vec3 uDirectionLightColors[DIR_LIGHT_NUM];\n uniform vec3 uDirectionLightPositions[DIR_LIGHT_NUM];\n uniform mat3 uNormalMatrix;\n#endif\n\nuniform mat4 uPosition;\nuniform vec3 uAmbientLightColor;\nuniform mat4 uCamera;\n\nvarying vec3 vColor;\nvarying vec3 vEmissive;\nvarying vec3 vLightWeighting;\n\nvoid main(void) {\n vColor = color;\n vEmissive = emissive;\n\n #ifdef USE_TEXTURE\n vTextureCoord = texture;\n vTextureEnable = textureEnable;\n #endif\n\n vec3 vLightTemp = vec3(0.0);\n\n #if DIR_LIGHT_NUM > 0\n vec3 transformedNormal = uNormalMatrix * normal;\n\n for(int i = 0; i < DIR_LIGHT_NUM; i++) {\n float dotProduct = dot(transformedNormal, uDirectionLightPositions[i]);\n vec3 directionalLightWeighting = vec3(max(dotProduct, 0.0));\n vLightTemp += uDirectionLightColors[i] * directionalLightWeighting;\n }\n #endif\n\n vLightWeighting = uAmbientLightColor + vLightTemp;\n\n gl_Position = uCamera * uPosition * vec4(position, 1.0);\n}\n"; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9zaGFkZXJzL2NvbXBsZXgudmVydC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLE9BQU8sT0FBUCIsImZpbGUiOiJjb21wbGV4LnZlcnQuanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IGBcbmF0dHJpYnV0ZSB2ZWMzIHBvc2l0aW9uO1xuYXR0cmlidXRlIHZlYzMgY29sb3I7XG5hdHRyaWJ1dGUgdmVjMyBlbWlzc2l2ZTtcblxuI2lmZGVmIFVTRV9URVhUVVJFXG4gICAgYXR0cmlidXRlIHZlYzIgdGV4dHVyZTtcbiAgICBhdHRyaWJ1dGUgZmxvYXQgdGV4dHVyZUVuYWJsZTtcbiAgICB2YXJ5aW5nIHZlYzIgdlRleHR1cmVDb29yZDtcbiAgICB2YXJ5aW5nIGZsb2F0IHZUZXh0dXJlRW5hYmxlO1xuI2VuZGlmXG5cbiNpZiBESVJfTElHSFRfTlVNID4gMF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cnQuanMnKSxcbiAgICBmcmFnbWVudDogcmVxdWlyZSgnLi9jb21wbGV4LmZyYWcuanMnKVxufTtcblxuZXhwb3J0IGNvbnN0IHNwcml0ZSA9IHtcbiAgICB2ZXJ0ZXg6IHJlcXVpcmUoJy4vc3ByaXRlLnZlcnQuanMnKSxcbiAgICBmcmFnbWVudDogcmVxdWlyZSgnLi9zcHJpdGUuZnJhZy5qcycpXG59O1xuIl19 | ||
var multiSprite = exports.multiSprite = { | ||
vertex: require('./multiSprite.vert.js'), | ||
fragment: require('./multiSprite.frag.js') | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9zaGFkZXJzL2luZGV4LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQU8sSUFBTSx3QkFBUTtBQUNqQixZQUFRLFFBQVEsaUJBQVIsQ0FBUjtBQUNBLGNBQVUsUUFBUSxpQkFBUixDQUFWO0NBRlM7O0FBS04sSUFBTSw0QkFBVTtBQUNuQixZQUFRLFFBQVEsbUJBQVIsQ0FBUjtBQUNBLGNBQVUsUUFBUSxtQkFBUixDQUFWO0NBRlM7O0FBS04sSUFBTSwwQkFBUztBQUNsQixZQUFRLFFBQVEsa0JBQVIsQ0FBUjtBQUNBLGNBQVUsUUFBUSxrQkFBUixDQUFWO0NBRlM7O0FBS04sSUFBTSxvQ0FBYztBQUN2QixZQUFRLFFBQVEsdUJBQVIsQ0FBUjtBQUNBLGNBQVUsUUFBUSx1QkFBUixDQUFWO0NBRlMiLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY29uc3QgYmFzaWMgPSB7XG4gICAgdmVydGV4OiByZXF1aXJlKCcuL2Jhc2ljLnZlcnQuanMnKSxcbiAgICBmcmFnbWVudDogcmVxdWlyZSgnLi9iYXNpYy5mcmFnLmpzJylcbn07XG5cbmV4cG9ydCBjb25zdCBjb21wbGV4ID0ge1xuICAgIHZlcnRleDogcmVxdWlyZSgnLi9jb21wbGV4LnZlcnQuanMnKSxcbiAgICBmcmFnbWVudDogcmVxdWlyZSgnLi9jb21wbGV4LmZyYWcuanMnKVxufTtcblxuZXhwb3J0IGNvbnN0IHNwcml0ZSA9IHtcbiAgICB2ZXJ0ZXg6IHJlcXVpcmUoJy4vc3ByaXRlLnZlcnQuanMnKSxcbiAgICBmcmFnbWVudDogcmVxdWlyZSgnLi9zcHJpdGUuZnJhZy5qcycpXG59O1xuXG5leHBvcnQgY29uc3QgbXVsdGlTcHJpdGUgPSB7XG4gICAgdmVydGV4OiByZXF1aXJlKCcuL211bHRpU3ByaXRlLnZlcnQuanMnKSxcbiAgICBmcmFnbWVudDogcmVxdWlyZSgnLi9tdWx0aVNwcml0ZS5mcmFnLmpzJylcbn07XG4iXX0= |
"use strict"; | ||
module.exports = "\nprecision mediump float;\n\nuniform sampler2D uTexture;\n\nvarying vec2 vTextureCoord;\nvarying float vColorAlpha;\n\nvoid main(void) {\n vec4 textureColor = texture2D(uTexture, vec2(vTextureCoord.s, vTextureCoord.t));\n\n gl_FragColor = textureColor * vColorAlpha;\n}\n"; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9zaGFkZXJzL211bHRpU3ByaXRlLmZyYWcuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxPQUFPLE9BQVAiLCJmaWxlIjoibXVsdGlTcHJpdGUuZnJhZy5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gYFxucHJlY2lzaW9uIG1lZGl1bXAgZmxvYXQ7XG5cbnVuaWZvcm0gc2FtcGxlcjJEIHVUZXh0dXJlO1xuXG52YXJ5aW5nIHZlYzIgdlRleHR1cmVDb29yZDtcbnZhcnlpbmcgZmxvYXQgdkNvbG9yQWxwaGE7XG5cbnZvaWQgbWFpbih2b2lkKSB7XG4gICAgdmVjNCB0ZXh0dXJlQ29sb3IgPSB0ZXh0dXJlMkQodVRleHR1cmUsIHZlYzIodlRleHR1cmVDb29yZC5zLCB2VGV4dHVyZUNvb3JkLnQpKTtcblxuICAgIGdsX0ZyYWdDb2xvciA9IHRleHR1cmVDb2xvciAqIHZDb2xvckFscGhhO1xufVxuYDsiXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9zaGFkZXJzL211bHRpU3ByaXRlLmZyYWcuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxPQUFPLE9BQVAiLCJmaWxlIjoibXVsdGlTcHJpdGUuZnJhZy5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gYFxucHJlY2lzaW9uIG1lZGl1bXAgZmxvYXQ7XG5cbnVuaWZvcm0gc2FtcGxlcjJEIHVUZXh0dXJlO1xuXG52YXJ5aW5nIHZlYzIgdlRleHR1cmVDb29yZDtcbnZhcnlpbmcgZmxvYXQgdkNvbG9yQWxwaGE7XG5cbnZvaWQgbWFpbih2b2lkKSB7XG4gICAgdmVjNCB0ZXh0dXJlQ29sb3IgPSB0ZXh0dXJlMkQodVRleHR1cmUsIHZlYzIodlRleHR1cmVDb29yZC5zLCB2VGV4dHVyZUNvb3JkLnQpKTtcblxuICAgIGdsX0ZyYWdDb2xvciA9IHRleHR1cmVDb2xvciAqIHZDb2xvckFscGhhO1xufVxuYDtcbiJdfQ== |
"use strict"; | ||
module.exports = "\nattribute vec2 position;\nattribute vec2 texture;\n\nattribute vec3 uPosition;\nattribute vec2 uScale;\nattribute vec2 uOffset;\nattribute float uColorAlpha;\n\nuniform int uSmoothing;\nuniform mat4 uPCamera;\nuniform vec2 uHalfSize;\n\nvarying vec2 vTextureCoord;\nvarying float vColorAlpha;\n\nvoid main(void) {\n vTextureCoord = texture;\n vColorAlpha = uColorAlpha;\n\n vec2 alignedPosition = position * uScale;\n alignedPosition += uOffset;\n alignedPosition /= uHalfSize;\n\n vec4 ndcPosition = uPCamera * vec4(uPosition, 1.0);\n ndcPosition.xyz = ndcPosition.xyz / ndcPosition.w;\n ndcPosition.w = 1.0;\n ndcPosition.xy += alignedPosition.xy;\n\n if (uSmoothing == 1) {\n ndcPosition.xy = floor((ndcPosition.xy + 1.0) * uHalfSize.xy + 0.5) / uHalfSize.xy - 1.0;\n }\n\n gl_Position = ndcPosition;\n}\n"; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9zaGFkZXJzL211bHRpU3ByaXRlLnZlcnQuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxPQUFPLE9BQVAiLCJmaWxlIjoibXVsdGlTcHJpdGUudmVydC5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gYFxuYXR0cmlidXRlIHZlYzIgcG9zaXRpb247XG5hdHRyaWJ1dGUgdmVjMiB0ZXh0dXJlO1xuXG5hdHRyaWJ1dGUgdmVjMyB1UG9zaXRpb247XG5hdHRyaWJ1dGUgdmVjMiB1U2NhbGU7XG5hdHRyaWJ1dGUgdmVjMiB1T2Zmc2V0O1xuYXR0cmlidXRlIGZsb2F0IHVDb2xvckFscGhhO1xuXG51bmlmb3JtIGludCB1U21vb3RoaW5nO1xudW5pZm9ybSBtYXQ0IHVQQ2FtZXJhO1xudW5pZm9ybSB2ZWMyIHVIYWxmU2l6ZTtcblxudmFyeWluZyB2ZWMyIHZUZXh0dXJlQ29vcmQ7XG52YXJ5aW5nIGZsb2F0IHZDb2xvckFscGhhO1xuXG52b2lkIG1haW4odm9pZCkge1xuICAgIHZUZXh0dXJlQ29vcmQgPSB0ZXh0dXJlO1xuICAgIHZDb2xvckFscGhhID0gdUNvbG9yQWxwaGE7XG5cbiAgICB2ZWMyIGFsaWduZWRQb3NpdGlvbiA9IHBvc2l0aW9uICogdVNjYWxlO1xuICAgIGFsaWduZWRQb3NpdGlvbiArPSB1T2Zmc2V0O1xuICAgIGFsaWduZWRQb3NpdGlvbiAvPSB1SGFsZlNpemU7XG5cbiAgICB2ZWM0IG5kY1Bvc2l0aW9uID0gdVBDYW1lcmEgKiB2ZWM0KHVQb3NpdGlvbiwgMS4wKTtcbiAgICBuZGNQb3NpdGlvbi54eXogPSBuZGNQb3NpdGlvbi54eXogLyBuZGNQb3NpdGlvbi53O1xuICAgIG5kY1Bvc2l0aW9uLncgPSAxLjA7XG4gICAgbmRjUG9zaXRpb24ueHkgKz0gYWxpZ25lZFBvc2l0aW9uLnh5O1xuXG4gICAgaWYgKHVTbW9vdGhpbmcgPT0gMSkge1xuICAgICAgICBuZGNQb3NpdGlvbi54eSA9IGZsb29yKChuZGNQb3NpdGlvbi54eSArIDEuMCkgKiB1SGFsZlNpemUueHkgKyAwLjUpIC8gdUhhbGZTaXplLnh5IC0gMS4wO1xuICAgIH1cblxuICAgIGdsX1Bvc2l0aW9uID0gbmRjUG9zaXRpb247XG59XG5gOyJdfQ== | ||
module.exports = "\nattribute vec2 disposition;\nattribute vec2 texture;\n\nattribute vec3 position;\nattribute vec2 scale;\nattribute vec2 offset;\nattribute float colorAlpha;\n\nuniform float uSmoothing;\nuniform mat4 uPCamera;\nuniform vec2 uHalfSize;\n\nvarying vec2 vTextureCoord;\nvarying float vColorAlpha;\n\nvoid main(void) {\n vTextureCoord = texture;\n vColorAlpha = colorAlpha;\n\n vec2 alignedPosition = disposition * scale;\n alignedPosition += offset;\n alignedPosition /= uHalfSize;\n\n vec4 ndcPosition = uPCamera * vec4(position, 1.0);\n ndcPosition.xyz = ndcPosition.xyz / ndcPosition.w;\n ndcPosition.w = 1.0;\n ndcPosition.xy += alignedPosition.xy;\n\n vec2 roundedPosition = floor((ndcPosition.xy + 1.0) * uHalfSize.xy + 0.5) / uHalfSize.xy - 1.0;\n vec2 roundingDelta = roundedPosition - ndcPosition.xy;\n\n if (vColorAlpha == 0.0) {\n ndcPosition.xy = vec2(-2.0, -2.0);\n } else {\n ndcPosition.xy = ndcPosition.xy + roundingDelta * uSmoothing;\n }\n\n gl_Position = ndcPosition;\n}\n"; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9zaGFkZXJzL211bHRpU3ByaXRlLnZlcnQuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxPQUFPLE9BQVAiLCJmaWxlIjoibXVsdGlTcHJpdGUudmVydC5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gYFxuYXR0cmlidXRlIHZlYzIgZGlzcG9zaXRpb247XG5hdHRyaWJ1dGUgdmVjMiB0ZXh0dXJlO1xuXG5hdHRyaWJ1dGUgdmVjMyBwb3NpdGlvbjtcbmF0dHJpYnV0ZSB2ZWMyIHNjYWxlO1xuYXR0cmlidXRlIHZlYzIgb2Zmc2V0O1xuYXR0cmlidXRlIGZsb2F0IGNvbG9yQWxwaGE7XG5cbnVuaWZvcm0gZmxvYXQgdVNtb290aGluZztcbnVuaWZvcm0gbWF0NCB1UENhbWVyYTtcbnVuaWZvcm0gdmVjMiB1SGFsZlNpemU7XG5cbnZhcnlpbmcgdmVjMiB2VGV4dHVyZUNvb3JkO1xudmFyeWluZyBmbG9hdCB2Q29sb3JBbHBoYTtcblxudm9pZCBtYWluKHZvaWQpIHtcbiAgICB2VGV4dHVyZUNvb3JkID0gdGV4dHVyZTtcbiAgICB2Q29sb3JBbHBoYSA9IGNvbG9yQWxwaGE7XG5cbiAgICB2ZWMyIGFsaWduZWRQb3NpdGlvbiA9IGRpc3Bvc2l0aW9uICogc2NhbGU7XG4gICAgYWxpZ25lZFBvc2l0aW9uICs9IG9mZnNldDtcbiAgICBhbGlnbmVkUG9zaXRpb24gLz0gdUhhbGZTaXplO1xuXG4gICAgdmVjNCBuZGNQb3NpdGlvbiA9IHVQQ2FtZXJhICogdmVjNChwb3NpdGlvbiwgMS4wKTtcbiAgICBuZGNQb3NpdGlvbi54eXogPSBuZGNQb3NpdGlvbi54eXogLyBuZGNQb3NpdGlvbi53O1xuICAgIG5kY1Bvc2l0aW9uLncgPSAxLjA7XG4gICAgbmRjUG9zaXRpb24ueHkgKz0gYWxpZ25lZFBvc2l0aW9uLnh5O1xuXG4gICAgdmVjMiByb3VuZGVkUG9zaXRpb24gPSBmbG9vcigobmRjUG9zaXRpb24ueHkgKyAxLjApICogdUhhbGZTaXplLnh5ICsgMC41KSAvIHVIYWxmU2l6ZS54eSAtIDEuMDtcbiAgICB2ZWMyIHJvdW5kaW5nRGVsdGEgPSByb3VuZGVkUG9zaXRpb24gLSBuZGNQb3NpdGlvbi54eTtcblxuICAgIGlmICh2Q29sb3JBbHBoYSA9PSAwLjApIHtcbiAgICAgICAgbmRjUG9zaXRpb24ueHkgPSB2ZWMyKC0yLjAsIC0yLjApO1xuICAgIH0gZWxzZSB7XG4gICAgICAgIG5kY1Bvc2l0aW9uLnh5ID0gbmRjUG9zaXRpb24ueHkgKyByb3VuZGluZ0RlbHRhICogdVNtb290aGluZztcbiAgICB9XG5cbiAgICBnbF9Qb3NpdGlvbiA9IG5kY1Bvc2l0aW9uO1xufVxuYDtcbiJdfQ== |
"use strict"; | ||
module.exports = "\nprecision mediump float;\n\nuniform float uColorAlpha;\nuniform sampler2D uTexture;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void) {\n vec4 textureColor = texture2D(uTexture, vec2(vTextureCoord.s, vTextureCoord.t));\n\n gl_FragColor = textureColor * uColorAlpha;\n}\n"; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9zaGFkZXJzL3Nwcml0ZS5mcmFnLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsT0FBTyxPQUFQIiwiZmlsZSI6InNwcml0ZS5mcmFnLmpzI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"\nattribute vec2 position;\nattribute vec2 texture;\n\nuniform vec3 uPosition;\nuniform mat4 uPCamera;\nuniform vec2 uScale;\nuniform vec2 uHalfSize;\nuniform vec2 uOffset;\nuniform float uSmoothing;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void) {\n vTextureCoord = texture;\n\n vec2 alignedPosition = position * uScale;\n alignedPosition += uOffset;\n alignedPosition /= uHalfSize;\n\n vec4 ndcPosition = uPCamera * vec4(uPosition, 1.0);\n ndcPosition.xyz = ndcPosition.xyz / ndcPosition.w;\n ndcPosition.w = 1.0;\n ndcPosition.xy += alignedPosition.xy;\n\n vec2 roundedPosition = floor((ndcPosition.xy + 1.0) * uHalfSize.xy + 0.5) / uHalfSize.xy - 1.0;\n vec2 roundingDelta = roundedPosition - ndcPosition.xy;\n\n ndcPosition.xy = ndcPosition.xy + roundingDelta * uSmoothing;\n\n gl_Position = ndcPosition;\n}\n"; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9zaGFkZXJzL3Nwcml0ZS52ZXJ0LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsT0FBTyxPQUFQIiwiZmlsZSI6InNwcml0ZS52ZXJ0LmpzIiwic291cmNlc0NvbnRlbnQiOlsibW9kdWxlLmV4cG9ydHMgPSBgXG5hdHRyaWJ1dGUgdmVjMiBwb3NpdGlvbjtcbmF0dHJpYnV0ZSB2ZWMyIHRleHR1cmU7XG5cbnVuaWZvcm0gdmVjMyB1UG9zaXRpb247XG51bmlmb3JtIG1hdDQgdVBDYW1lcmE7XG51bmlmb3JtIHZlYzIgdVNjYWxlO1xudW5pZm9ybSB2ZWMyIHVIYWxmU2l6ZTtcbnVuaWZvcm0gdmVjMiB1T2Zmc2V0O1xudW5pZm9ybSBmbG9hdCB1U21vb3RoaW5nO1xuXG52YXJ5aW5nIHZlYzIgdlRleHR1cmVDb29yZDtcblxudm9pZCBtYWluKHZ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KiB1U21vb3RoaW5nO1xuXG4gICAgZ2xfUG9zaXRpb24gPSBuZGNQb3NpdGlvbjtcbn1cbmA7XG4iXX0= |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
638754
46
3701
30