Comparing version 0.3.1 to 0.3.2
420
Buffer.js
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
value: true | ||
}); | ||
@@ -19,241 +19,248 @@ | ||
var Buffer = function () { | ||
function Buffer(array, itemSize) { | ||
_classCallCheck(this, Buffer); | ||
function Buffer(array, itemSize) { | ||
_classCallCheck(this, Buffer); | ||
this._array = array; | ||
this._array = array; | ||
/** | ||
* Размерность данных | ||
* @type {Number} | ||
*/ | ||
this.itemSize = itemSize; | ||
/** | ||
* Размерность данных | ||
* @type {Number} | ||
*/ | ||
this.itemSize = itemSize; | ||
/** | ||
* Количество элементов в массиве данных | ||
* @type {Number} | ||
*/ | ||
this.length = array.length / itemSize; | ||
/** | ||
* Количество элементов в массиве данных | ||
* @type {Number} | ||
*/ | ||
this.length = array.length / itemSize; | ||
/** | ||
* Тип буфера. Буфер может использоваться для передачи массива данных, | ||
* так и для передачи индексов элементов из данных. | ||
* @type {Buffer.ArrayBuffer | Buffer.ElementArrayBuffer} | ||
*/ | ||
this.type = Buffer.ArrayBuffer; | ||
/** | ||
* Тип буфера. Буфер может использоваться для передачи массива данных, | ||
* так и для передачи индексов элементов из данных. | ||
* @type {Buffer.ArrayBuffer | Buffer.ElementArrayBuffer} | ||
*/ | ||
this.type = Buffer.ArrayBuffer; | ||
/** | ||
* Указывает, как часто данные буфера будут изменяться. | ||
* @type {Buffer.StaticDraw | Buffer.DynamicDraw} | ||
*/ | ||
this.drawType = Buffer.StaticDraw; | ||
/** | ||
* Указывает, как часто данные буфера будут изменяться. | ||
* @type {Buffer.StaticDraw | Buffer.DynamicDraw} | ||
*/ | ||
this.drawType = Buffer.StaticDraw; | ||
/** | ||
* Тип данных в буффере: float, int, short и т.д. | ||
* @type {Buffer.Float | Buffer.UnsignedByte} | ||
*/ | ||
this.dataType = Buffer.Float; | ||
/** | ||
* Тип данных в буффере: float, int, short и т.д. | ||
* @type {Buffer.Float | Buffer.UnsignedByte} | ||
*/ | ||
this.dataType = Buffer.Float; | ||
/** | ||
* Используется для целочисленных типов. Если выставлен в true, то | ||
* значения имеющие тип BYTE от -128 до 128 будут переведены от -1.0 до 1.0. | ||
* @type {Boolean} | ||
*/ | ||
this.normalized = false; | ||
/** | ||
* Используется для целочисленных типов. Если выставлен в true, то | ||
* значения имеющие тип BYTE от -128 до 128 будут переведены от -1.0 до 1.0. | ||
* @type {Boolean} | ||
*/ | ||
this.normalized = false; | ||
/** | ||
* Инициализация буфера происходит в момент первого рендеринга. | ||
* Текущий WebGl контекст сохраняется в этой переменной. | ||
* Если контекст меняется, буфер необходимо инициализировать заново. | ||
* @type {?WebGLRenderingContext} | ||
* @ignore | ||
*/ | ||
this._preparedGlContext = null; | ||
} | ||
/** | ||
* Инициализация буфера происходит в момент первого рендеринга. | ||
* Текущий WebGl контекст сохраняется в этой переменной. | ||
* Если контекст меняется, буфер необходимо инициализировать заново. | ||
* @type {?WebGLRenderingContext} | ||
* @ignore | ||
* Связывает данные с контекстом WebGL. | ||
* | ||
* В случае Buffer.ArrayBuffer связывает с атрибутами шейдера. | ||
* А в случае Buffer.ElementArrayBuffer связывает массив индексов. | ||
* | ||
* Если используется первый раз, добавляет данные в контекст WebGL. | ||
* | ||
* @param {WebGLRenderingContext} gl | ||
* @param {?Number} location Положение аттрибута для связывания данных с переменными в шейдере | ||
* @param {?BufferBindOptions} options Параметры передаваемые в функцию vertexAttribPointer, если их нет, | ||
* то используются параметры конкретного буфера. Параметры должны быть переданы все. | ||
*/ | ||
this._preparedGlContext = null; | ||
} | ||
/** | ||
* Связывает данные с контекстом WebGL. | ||
* | ||
* В случае Buffer.ArrayBuffer связывает с атрибутами шейдера. | ||
* А в случае Buffer.ElementArrayBuffer связывает массив индексов. | ||
* | ||
* Если используется первый раз, добавляет данные в контекст WebGL. | ||
* | ||
* @param {WebGLRenderingContext} gl | ||
* @param {?Number} attribute Аттрибут для связывания данных с переменными в шейдере | ||
*/ | ||
_createClass(Buffer, [{ | ||
key: "bind", | ||
value: function bind(gl, location, options) { | ||
if (this._preparedGlContext !== gl) { | ||
this._unprepare(this._preparedGlContext); | ||
} | ||
_createClass(Buffer, [{ | ||
key: "bind", | ||
value: function bind(gl, attribute) { | ||
if (this._preparedGlContext !== gl) { | ||
this._unprepare(this._preparedGlContext); | ||
} | ||
if (!this._glBuffer) { | ||
this._prepare(gl); | ||
} | ||
if (!this._glBuffer) { | ||
this._prepare(gl); | ||
} | ||
if (this.type === Buffer.ArrayBuffer) { | ||
gl.bindBuffer(gl.ARRAY_BUFFER, this._glBuffer); | ||
if (this.type === Buffer.ArrayBuffer) { | ||
gl.bindBuffer(gl.ARRAY_BUFFER, this._glBuffer); | ||
gl.vertexAttribPointer(attribute, this.itemSize, this._toGlParam(gl, this.dataType), this.normalized, 0, 0); | ||
} else if (this.type === Buffer.ElementArrayBuffer) { | ||
gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, this._glBuffer); | ||
} | ||
if (options) { | ||
gl.vertexAttribPointer(location, options.itemSize, this._toGlParam(gl, options.dataType), options.normalized, options.stride, options.offset); | ||
} else { | ||
gl.vertexAttribPointer(location, this.itemSize, this._toGlParam(gl, this.dataType), this.normalized, 0, 0); | ||
} | ||
} else if (this.type === Buffer.ElementArrayBuffer) { | ||
gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, this._glBuffer); | ||
} | ||
return this; | ||
} | ||
return this; | ||
} | ||
/** | ||
* Удаляет данные из контекста WebGL. | ||
* @param {WebGLRenderingContext} gl | ||
*/ | ||
/** | ||
* Удаляет данные из контекста WebGL. | ||
* @param {WebGLRenderingContext} gl | ||
*/ | ||
}, { | ||
key: "remove", | ||
value: function remove(gl) { | ||
this._unprepare(gl); | ||
}, { | ||
key: "remove", | ||
value: function remove(gl) { | ||
this._unprepare(gl); | ||
return this; | ||
} | ||
return this; | ||
} | ||
/** | ||
* Возвращает массив данных | ||
* @returns {TypedArray} | ||
*/ | ||
/** | ||
* Возвращает массив данных | ||
* @returns {TypedArray} | ||
*/ | ||
}, { | ||
key: "getArray", | ||
value: function getArray() { | ||
return this._array; | ||
} | ||
}, { | ||
key: "getArray", | ||
value: function getArray() { | ||
return this._array; | ||
} | ||
/** | ||
* Возвращает элемент из массива данных | ||
* @param {Number} index Номер элемента в массиве данных | ||
* @returns {TypedArray} | ||
*/ | ||
/** | ||
* Возвращает элемент из массива данных | ||
* @param {Number} index Номер элемента в массиве данных | ||
* @returns {TypedArray} | ||
*/ | ||
}, { | ||
key: "getElement", | ||
value: function getElement(index) { | ||
return this._array.subarray(index * this.itemSize, (index + 1) * this.itemSize); | ||
} | ||
}, { | ||
key: "getElement", | ||
value: function getElement(index) { | ||
return this._array.subarray(index * this.itemSize, (index + 1) * this.itemSize); | ||
} | ||
/** | ||
* Возвращает тройку элементов из массива данных | ||
* @param {Number} index Индекс | ||
* @returns {TypedArray[]} | ||
*/ | ||
/** | ||
* Возвращает тройку элементов из массива данных | ||
* @param {Number} index Индекс | ||
* @returns {TypedArray[]} | ||
*/ | ||
}, { | ||
key: "getTriangle", | ||
value: function getTriangle(index) { | ||
index *= 3; | ||
}, { | ||
key: "getTriangle", | ||
value: function getTriangle(index) { | ||
index *= 3; | ||
return [this.getElement(index), this.getElement(index + 1), this.getElement(index + 2)]; | ||
} | ||
return [this.getElement(index), this.getElement(index + 1), this.getElement(index + 2)]; | ||
} | ||
/** | ||
* Конкатенирует данный буфер с другим. | ||
* Осторожно, метод не проверяет одинаковой размерности данные или нет. | ||
* @param {Buffer} buffer | ||
*/ | ||
/** | ||
* Конкатенирует данный буфер с другим. | ||
* Осторожно, метод не проверяет одинаковой размерности данные или нет. | ||
* @param {Buffer} buffer | ||
*/ | ||
}, { | ||
key: "concat", | ||
value: function concat(buffer) { | ||
var addArray = buffer.getArray(); | ||
var newArray = new this._array.constructor(this._array.length + addArray.length); | ||
newArray.set(this._array, 0); | ||
newArray.set(addArray, this._array.length); | ||
}, { | ||
key: "concat", | ||
value: function concat(buffer) { | ||
var addArray = buffer.getArray(); | ||
var newArray = new this._array.constructor(this._array.length + addArray.length); | ||
newArray.set(this._array, 0); | ||
newArray.set(addArray, this._array.length); | ||
this._array = newArray; | ||
this.length = newArray.length / this.itemSize; | ||
this._array = newArray; | ||
this.length = newArray.length / this.itemSize; | ||
return this; | ||
} | ||
return this; | ||
} | ||
/** | ||
* Заменяет часть буфера новыми данными и отправляет их в видеокарту | ||
* @param {WebGLRenderingContext} gl | ||
* @param {Number} index Индекс, с которого начать замену | ||
* @param {TypedArray} data Новые данные | ||
*/ | ||
/** | ||
* Заменяет часть буфера новыми данными и отправляет их в видеокарту | ||
* @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); | ||
}, { | ||
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; | ||
} | ||
return this; | ||
} | ||
/** | ||
* Кладёт данные в видеокарту | ||
* @param {WebGLRenderingContext} gl | ||
* @ignore | ||
*/ | ||
/** | ||
* Кладёт данные в видеокарту | ||
* @param {WebGLRenderingContext} gl | ||
* @ignore | ||
*/ | ||
}, { | ||
key: "_prepare", | ||
value: function _prepare(gl) { | ||
this._glBuffer = gl.createBuffer(); | ||
gl.bindBuffer(this._toGlParam(gl, this.type), this._glBuffer); | ||
gl.bufferData(this._toGlParam(gl, this.type), this._array, this._toGlParam(gl, this.drawType)); | ||
this._preparedGlContext = gl; | ||
} | ||
}, { | ||
key: "_prepare", | ||
value: function _prepare(gl) { | ||
this._glBuffer = gl.createBuffer(); | ||
gl.bindBuffer(this._toGlParam(gl, this.type), this._glBuffer); | ||
gl.bufferData(this._toGlParam(gl, this.type), this._array, this._toGlParam(gl, this.drawType)); | ||
this._preparedGlContext = gl; | ||
} | ||
/** | ||
* Удаляет данные из видеокарты | ||
* @param {WebGLRenderingContext} gl | ||
* @ignore | ||
*/ | ||
/** | ||
* Удаляет данные из видеокарты | ||
* @param {WebGLRenderingContext} gl | ||
* @ignore | ||
*/ | ||
}, { | ||
key: "_unprepare", | ||
value: function _unprepare(gl) { | ||
if (!gl) { | ||
return; | ||
} | ||
}, { | ||
key: "_unprepare", | ||
value: function _unprepare(gl) { | ||
if (!gl) { | ||
return; | ||
} | ||
if (this._glBuffer) { | ||
gl.deleteBuffer(this._glBuffer); | ||
} | ||
this._glBuffer = null; | ||
} | ||
if (this._glBuffer) { | ||
gl.deleteBuffer(this._glBuffer); | ||
} | ||
this._glBuffer = null; | ||
} | ||
/** | ||
* Преобразовывает параметры буфера в параметры WebGL | ||
* @param {WebGLRenderingContext} gl | ||
* @param {Buffer.ArrayBuffer | Buffer.ElementArrayBuffer} param | ||
* @ignore | ||
*/ | ||
/** | ||
* Преобразовывает параметры буфера в параметры WebGL | ||
* @param {WebGLRenderingContext} gl | ||
* @param {Buffer.ArrayBuffer | Buffer.ElementArrayBuffer} param | ||
* @ignore | ||
*/ | ||
}, { | ||
key: "_toGlParam", | ||
value: function _toGlParam(gl, param) { | ||
if (param === Buffer.ArrayBuffer) { | ||
return gl.ARRAY_BUFFER; | ||
} | ||
if (param === Buffer.ElementArrayBuffer) { | ||
return gl.ELEMENT_ARRAY_BUFFER; | ||
} | ||
if (param === Buffer.StaticDraw) { | ||
return gl.STATIC_DRAW; | ||
} | ||
if (param === Buffer.DynamicDraw) { | ||
return gl.DYNAMIC_DRAW; | ||
} | ||
if (param === Buffer.Float) { | ||
return gl.FLOAT; | ||
} | ||
if (param === Buffer.UnsignedByte) { | ||
return gl.UNSIGNED_BYTE; | ||
} | ||
} | ||
}]); | ||
}, { | ||
key: "_toGlParam", | ||
value: function _toGlParam(gl, param) { | ||
if (param === Buffer.ArrayBuffer) { | ||
return gl.ARRAY_BUFFER; | ||
} | ||
if (param === Buffer.ElementArrayBuffer) { | ||
return gl.ELEMENT_ARRAY_BUFFER; | ||
} | ||
if (param === Buffer.StaticDraw) { | ||
return gl.STATIC_DRAW; | ||
} | ||
if (param === Buffer.DynamicDraw) { | ||
return gl.DYNAMIC_DRAW; | ||
} | ||
if (param === Buffer.Float) { | ||
return gl.FLOAT; | ||
} | ||
if (param === Buffer.UnsignedByte) { | ||
return gl.UNSIGNED_BYTE; | ||
} | ||
} | ||
}]); | ||
return Buffer; | ||
return Buffer; | ||
}(); | ||
@@ -271,3 +278,16 @@ | ||
exports.default = Buffer; | ||
/** | ||
* Параметры передаваемые в функцию vertexAttribPointer. | ||
* | ||
* @typedef {Object} BufferBindOptions | ||
* @property {Number} itemSize Размерность элементов в буфере | ||
* @property {Buffer.Float | Buffer.UnsignedByte} dataType Тип данных в буфере | ||
* @property {Boolean} normalized Используется для целочисленных типов. Если выставлен в true, то | ||
* значения имеющие тип BYTE от -128 до 128 будут переведены от -1.0 до 1.0. | ||
* @property {Number} stride | ||
* @property {Number} offset | ||
*/ | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9CdWZmZXIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7SUFNTSxNO0FBQ0Ysa0JBQVksS0FBWixFQUFtQixRQUFuQixFQUE2QjtBQUFBOztBQUN6QixTQUFLLE1BQUwsR0FBYyxLQUFkOzs7Ozs7QUFNQSxTQUFLLFFBQUwsR0FBZ0IsUUFBaEI7Ozs7OztBQU1BLFNBQUssTUFBTCxHQUFjLE1BQU0sTUFBTixHQUFlLFFBQTdCOzs7Ozs7O0FBT0EsU0FBSyxJQUFMLEdBQVksT0FBTyxXQUFuQjs7Ozs7O0FBTUEsU0FBSyxRQUFMLEdBQWdCLE9BQU8sVUFBdkI7Ozs7OztBQU1BLFN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yMDtcbkJ1ZmZlci5VbnNpZ25lZEJ5dGUgPSAyMTtcblxuZXhwb3J0IGRlZmF1bHQgQnVmZmVyO1xuXG4vKipcbiAqINCf0LDRgNCw0LzQtdGC0YDRiyDQv9C10YDQtdC00LDQstCw0LXQvNGL0LUg0LIg0YTRg9C90LrRhtC40Y4gdmVydGV4QXR0cmliUG9pbnRlci5cbiAqXG4gKiBAdHlwZWRlZiB7T2JqZWN0fSBCdWZmZXJCaW5kT3B0aW9uc1xuICogQHByb3BlcnR5IHtOdW1iZXJ9IGl0ZW1TaXplINCg0LDQt9C80LXRgNC90L7RgdGC0Ywg0Y3Qu9C10LzQtdC90YLQvtCyINCyINCx0YPRhNC10YDQtVxuICogQHByb3BlcnR5IHtCdWZmZXIuRmxvYXQgfCBCdWZmZXIuVW5zaWduZWRCeXRlfSBkYXRhVHlwZSDQotC40L8g0LTQsNC90L3Ri9GFINCyINCx0YPRhNC10YDQtVxuICogQHByb3BlcnR5IHtCb29sZWFufSBub3JtYWxpemVkINCY0YHQv9C+0LvRjNC30YPQtdGC0YHRjyDQtNC70Y8g0YbQtdC70L7Rh9C40YHQu9C10L3QvdGL0YUg0YLQuNC/0L7Qsi4g0JXRgdC70Lgg0LLRi9GB0YLQsNCy0LvQtdC9INCyIHRydWUsINGC0L5cbiAqINC30L3QsNGH0LXQvdC40Y8g0LjQvNC10Y7RidC40LUg0YLQuNC/IEJZVEUg0L7RgiAtMTI4INC00L4gMTI4INCx0YPQtNGD0YIg0L/QtdGA0LXQstC10LTQtdC90Ysg0L7RgiAtMS4wINC00L4gMS4wLlxuICogQHByb3BlcnR5IHtOdW1iZXJ9IHN0cmlkZVxuICogQHByb3BlcnR5IHtOdW1iZXJ9IG9mZnNldFxuICovXG4iXX0= |
@@ -147,2 +147,2 @@ 'use strict'; | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jYW1lcmFzL0Nhb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0ID0gdmVjMy5jcmVhdGUoKTtcblxuICAgICAgICBtYXQ0LmludmVydChpbnZlcnNlTWF0cml4LCB0aGlzLnByb2plY3Rpb25NYXRyaXgpO1xuICAgICAgICBtYXQ0Lm11bChtYXRyaXgsIHRoaXMud29ybGRNYXRyaXgsIGludmVyc2VNYXRyaXgpO1xuICAgICAgICB2ZWMzLnRyYW5zZm9ybU1hdDQocmVzdWx0LCB2ZWN0b3IsIG1hdHJpeCk7XG5cbiAgICAgICAgcmV0dXJuIHJlc3VsdDtcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiDQn9C+0LLQvtGA0LDRh9C40LLQsNC10YIg0LrQsNC80LXRgNGDINGC0LDQuiwg0YfRgtC+0LHRiyDRhtC10L3RgtGAINGN0LrRgNCw0L3QsCDRgtC+0YfQvdC+INGB0LzQvtGC0YDQtdC7INC90LAg0YPQutCw0LfQsNC90L3Rg9GOINC/0L7Qt9C40YbQuNGOXG4gICAgICogQHBhcmFtIHt2ZWMzfSBwb3NpdGlvblxuICAgICAqL1xuICAgIGxvb2tBdChwb3NpdGlvbikge1xuICAgICAgICBjb25zdCBtYXRyaXg0ID0gbWF0NC5jcmVhdGUoKTtcbiAgICAgICAgY29uc3QgbWF0cml4MyA9IG1hdDMuY3JlYXRlKCk7XG4gICAgICAgIG1hdDQubG9va0F0KG1hdHJpeDQsIHRoaXMucG9zaXRpb24sIHBvc2l0aW9uLCB0aGlzLnVwKTtcbiAgICAgICAgbWF0NC50cmFuc3Bvc2UobWF0cml4NCwgbWF0cml4NCk7XG4gICAgICAgIG1hdDMuZnJvbU1hdDQobWF0cml4MywgbWF0cml4NCk7XG4gICAgICAgIHF1YXQuZnJvbU1hdDModGhpcy5xdWF0ZXJuaW9uLCBtYXRyaXgzKTtcblxuICAgICAgICByZXR1cm4gdGhpcztcbiAgICB9XG59XG5cbmV4cG9ydCBkZWZhdWx0IENhbWVyYTtcbiJdfQ== |
@@ -107,2 +107,2 @@ 'use strict'; | ||
module.exports = exports['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C+0YLQvtCx0YDQsNC20LDRgtGM0YHRj1xuICAgICAqL1xuICAgIGNvbnN0cnVjdG9yKGxlZnQsIHJpZ2h0LCB0b3AsIGJvdHRvbSwgbmVhciwgZmFyKSB7XG4gICAgICAgIHN1cGVyKCk7XG5cbiAgICAgICAgLyoqXG4gICAgICAgICAqINCb0LXQstCw0Y8g0L/Qu9C+0YHQutC+0YHRgtGMINC60LDQvNC10YDRi1xuICAgICAgICAgKiBAdHlwZSB7TnVtYmVyfVxuICAgICAgICAgKi9cbiAgICAgICAgdGhpcy5sZWZ0ID0gbGVmdDtcblxuICAgICAgICAvKipcbiAgICAgICAgICog0J/RgNCw0LLQsNGPINC/0LvQvtGB0LrQvtGB0YLRjCDQutCw0LzQtdGA0YtcbiAgICAgICAgICogQHR5cGUge051bWJlcn1cbiAgICAgICAgICovXG4gICAgICAgIHRoaXMucmlnaHQgPSByaWdodDtcblxuICAgICAgICAvKipcbiAgICAgICAgICog0JLQtdGA0YXQvdGP0Y8g0L/Qu9C+0YHQutC+0YHRgtGMINC60LDQvNC10YDRi1xuICAgICAgICAgKiBAdHlwZSB7TnVtYmVyfVxuICAgICAgICAgKi9cbiAgICAgICAgdGhpcy50b3AgPSB0b3A7XG5cbiAgICAgICAgLyoqXG4gICAgICAgICAqINCd0LjQttC90Y/RjyDQv9C70L7RgdC60L7RgdGC0Ywg0LrQsNC80LXRgNGLXG4gICAgICAgICAqIEB0eXBlIHtOdW1iZXJ9XG4gICAgICAgICAqL1xuICAgICAgICB0aGlzLmJvdHRvbSA9IGJvdHRvbTtcblxuICAgICAgICAvKipcbiAgICAgICAgICog0JzQuNC90LjQvNCw0LvRjNC90L7QtSDRgNCw0YHRgdGC0L7Rj9C90LjQtSDQvtGCINC60LDQvNC10YDRiyDQtNC+INC+0LHRitC10LrRgtC+0LIsINC60L7RgtC+0YDRi9C1INCx0YPQtNGD0YIg0L7RgtC+0LHRgNCw0LbQsNGC0YzRgdGPXG4gICAgICAgICAqIEB0eXBlIHt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0JvQtdCy0LDRjyDQv9C70L7RgdC60L7RgdGC0Ywg0LrQsNC80LXRgNGLXG4gICAgICAgICAqIEB0eXBlIHtOdW1iZXJ9XG4gICAgICAgICAqL1xuICAgICAgICB0aGlzLmxlZnQgPSBsZWZ0O1xuXG4gICAgICAgIC8qKlxuICAgICAgICAgKiDQn9GA0LDQstCw0Y8g0L/Qu9C+0YHQutC+0YHRgtGMINC60LDQvNC10YDRi1xuICAgICAgICAgKiBAdHlwZSB7TnVtYmVyfVxuICAgICAgICAgKi9cbiAgICAgICAgdGhpcy5yaWdodCA9IHJpZ2h0O1xuXG4gICAgICAgIC8qKlxuICAgICAgICAgKiDQktC10YDRhdC90Y/RjyDQv9C70L7RgdC60L7RgdGC0Ywg0LrQsNC80LXRgNGLXG4gICAgICAgICAqIEB0eXBlIHtOdW1iZXJ9XG4gICAgICAgICAqL1xuICAgICAgICB0aGlzLnRvcCA9IHRvcDtcblxuICAgICAgICAvKipcbiAgICAgICAgICog0J3QuNC20L3Rj9GPINC/0LvQvtGB0LrQvtGB0YLRjCDQutCw0LzQtdGA0YtcbiAgICAgICAgICogQHR5cGUge051bWJlcn1cbiAgICAgICAgICovXG4gICAgICAgIHRoaXMuYm90dG9tID0gYm90dG9tO1xuXG4gICAgICAgIC8qKlxuICAgICAgICAgKiDQnNC40L3QuNC80LDQu9GM0L3QvtC1INGA0LDRgdGB0YLQvtGP0L3QuNC1INC+0YIg0LrQsNC80LXRgNGLINC00L4g0L7QsdGK0LXQutGC0L7Qsiwg0LrQvtGC0L7RgNGL0LUg0LHRg9C00YPRgiDQvtGC0L7QsdGA0LDQttCw0YLRjNGB0Y9cbiAgICAgICAgICogQHR5cGUge051bWJlcn1cbiAgICAgICAgICovXG4gICAgICAgIHRoaXMubmVhciA9IG5lYXI7XG5cbiAgICAgICAgLyoqXG4gICAgICAgICAqINCc0LDQutGB0LjQvNCw0LvRjNC90L7QtSDRgNCw0YHRgdGC0L7Rj9C90LjQtSDQvtGCINC60LDQvNC10YDRiyDQtNC+INC+0LHRitC10LrRgtC+0LIsINC60L7RgtC+0YDRi9C1INCx0YPQtNGD0YIg0L7RgtC+0LHRgNCw0LbQsNGC0YzRgdGPXG4gICAgICAgICAqIEB0eXBlIHtOdW1iZXJ9XG4gICAgICAgICAqL1xuICAgICAgICB0aGlzLmZhciA9IGZhcjtcblxuICAgICAgICAvKipcbiAgICAgICAgICog0JjRgdC/0L7Qu9GM0LfRg9C10YLRgdGPINC00LvRjyDQvtCx0L7Qt9C90LDRh9C10L3QuNGPINGC0LjQv9CwINC60LDQvNC10YDRi1xuICAgICAgICAgKiBAdHlwZSB7TnVtYmVyfVxuICAgICAgICAgKi9cbiAgICAgICAgdGhpcy50eXBlID0gbGliQ29uc3RhbnRzLk9SVEhPR1JBUEhJQ19DQU1FUkE7XG4gICAgfVxuXG4gICAgdXBkYXRlUHJvamVjdGlvbk1hdHJpeCgpIHtcbiAgICAgICAgbWF0NC5vcnRobyh0aGlzLnByb2plY3Rpb25NYXRyaXgsIHRoaXMubGVmdCwgdGhpcy5yaWdodCwgdGhpcy5ib3R0b20sIHRoaXMudG9wLCB0aGlzLm5lYXIsIHRoaXMuZmFyKTtcbiAgICB9XG59XG5cbmV4cG9ydCBkZWZhdWx0IE9ydGhvZ3JhcGhpY0NhbWVyYTtcbiJdfQ== |
@@ -95,2 +95,2 @@ 'use strict'; | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jYW1lcmFzL1BlcnNwZWN0aXZlQ2FtZXJhLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7O0FBQUE7O0FBQ0E7Ozs7QUFDQTs7QUFDQTs7Ozs7Ozs7Ozs7Ozs7Ozs7O0lBT00saUI7Ozs7Ozs7Ozs7QUFPRiw2QkFBWSxHQUFaLEVBQWlCLE1BQWpCLEVBQXlCLElBQXpCLEVBQStCLEdBQS9CLE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L/QvtC00L7QsdC90YssINGCLtC1LiDRgdC+0LTQtdGA0LbQsNGC0Ywg0L7QtNC40L3QsNC60L7QstGL0LUg0LHRg9GE0LXRgNGLLlxuICAgICAqIEBwYXJhbSB7R2VvbWV0cnl9IGdlb21ldHJ5XG4gICAgICovXG4gICAgY29uY2F0KGdlb21ldHJ5KSB7XG4gICAgICAgIGZvciAoY29uc3QgdHlwZSBpbiB0aGlzLmJ1ZmZlcnMpIHtcbiAgICAgICAgICAgIHRoaXMuYnVmZmVyc1t0eXBlXS5jb25jYXQoZ2VvbWV0cnkuYnVmZmVyc1t0eXBlXSk7XG4gICAgICAgIH1cbiAgICB9XG59XG5cbmV4cG9ydCBkZWZhdWx0IEdlb21ldHJ5O1xuIl19 |
12
index.js
@@ -27,2 +27,6 @@ 'use strict'; | ||
var _BufferChannel = require('./BufferChannel'); | ||
var _BufferChannel2 = _interopRequireDefault(_BufferChannel); | ||
var _Geometry = require('./Geometry'); | ||
@@ -32,2 +36,6 @@ | ||
var _Shader = require('./Shader'); | ||
var _Shader2 = _interopRequireDefault(_Shader); | ||
var _ShaderProgram = require('./ShaderProgram'); | ||
@@ -133,2 +141,3 @@ | ||
Buffer: _Buffer2.default, | ||
BufferChannel: _BufferChannel2.default, | ||
Geometry: _Geometry2.default, | ||
@@ -138,2 +147,3 @@ Mesh: _Mesh2.default, | ||
MultiSprite: _MultiSprite2.default, | ||
Shader: _Shader2.default, | ||
ShaderProgram: _ShaderProgram2.default, | ||
@@ -164,2 +174,2 @@ BasicMeshMaterial: _BasicMeshMaterial2.default, | ||
module.exports = dgl; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9pbmRleC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUlBOzs7O0FBQ0E7Ozs7QUFDQTs7OztBQUNBOzs7O0FBQ0E7Ozs7QUFDQTs7OztBQUNBOzs7O0FBQ0E7Ozs7QUFDQTs7Ozt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IEJ1ZmZlcixcbiAgICBCdWZmZXJDaGFubmVsLFxuICAgIEdlb21ldHJ5LFxuICAgIE1lc2gsXG4gICAgU3ByaXRlLFxuICAgIE11bHRpU3ByaXRlLFxuICAgIFNoYWRlcixcbiAgICBTaGFkZXJQcm9ncmFtLFxuICAgIEJhc2ljTWVzaE1hdGVyaWFsLFxuICAgIENvbXBsZXhNZXNoTWF0ZXJpYWwsXG4gICAgU3ByaXRlTWF0ZXJpYWwsXG4gICAgTXVsdGlTcHJpdGVNYXRlcmlhbCxcbiAgICBTY2VuZSxcbiAgICBUZXh0dXJlLFxuICAgIEFtYmllbnRMaWdodCxcbiAgICBEaXJlY3Rpb25hbExpZ2h0LFxuICAgIFJheWNhc3RlcixcbiAgICBSZW5kZXJUYXJnZXQsXG4gICAgUmF5LFxuICAgIFBsYW5lLFxuICAgIEZydXN0dW0sXG4gICAgQm94LFxuICAgIExpbmUzLFxuICAgIE1hdGg6IG1hdGgsXG4gICAgdmVjMyxcbiAgICBtYXQzLFxuICAgIHZlYzIsXG4gICAgbWF0NCxcbiAgICBxdWF0XG59O1xuXG5tb2R1bGUuZXhwb3J0cyA9IGRnbDtcbiJdfQ== |
@@ -33,2 +33,2 @@ "use strict"; | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9saWJDb25zdGFudHMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7O2tCQUllO0FBQ1gseUJBQXFCLENBRFY7QUFFWCx3QkFBb0IsQ0FGVDs7QUFJWCxtQkFBZSxDQUpKO0FBS1gsdUJBQW1CLENBTFI7O0FBT1gseUJBQXFCLENBUFY7QUFRWCwyQkFBdUIsQ0FSWjtBQVNYLHFCQUFpQixDQVROO0FBVVgsMkJBQXVCLENBVlo7O0FBWVgsVUFBTSxDQVpLO0FBYVgsWUFBUSxFQWJHO0FBY1gsa0JBQWMsRUFkSDtBQWV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QVNJQ19NRVNIX01BVEVSSUFMOiA1LFxuICAgIENPTVBMRVhfTUVTSF9NQVRFUklBTDogNixcbiAgICBTUFJJVEVfTUFURVJJQUw6IDcsXG4gICAgTVVMVElfU1BSSVRFX01BVEVSSUFMOiA4LFxuXG4gICAgTUVTSDogOSxcbiAgICBTUFJJVEU6IDEwLFxuICAgIE1VTFRJX1NQUklURTogMTEsXG4gICAgT0JKRUNUXzNEOiAxMixcblxuICAgIENPTU1PTl9SRU5ERVJFUjogMTMsXG4gICAgVFJBTlNQQVJFTlRfUkVOREVSRVI6IDE0LFxuICAgIFNQUklURV9SRU5ERVJFUjogMTUsXG4gICAgTVVMVElfU1BSSVRFX1JFTkRFUkVSOiAxNlxufTtcbiJdfQ== |
@@ -51,2 +51,2 @@ 'use strict'; | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9saWdodHMvQW1iaWVudExpZ2h0LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBOzs7O0FBQ0E7Ozs7Ozs7Ozs7Ozs7Ozs7OztJQU9NLFk7OztBQUNGLHdCQUFZLEtBQVosRUFBbUI7QUFBQTs7Ozs7OztBQUFBLGdHQUNULEtBRFM7O0FBT2YsVUFBSyxJQUFMLEdBQVksdUJBQWEsYUFBekI7QUFQZTtBQVFsQjs7Ozs7a0JBR1UsWSIsImZpbGUiOiJBbWJpZW50TGlnaHQuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgbGliQ29uc3RhbnRzIGZyb20gJy4uL2xpYkNvbnN0YW50cyc7XG5pbXBvcnQgTGlnaHQgZnJvbSAnLi9MaWdodCc7XG5cbi8qKlxuICog0JjRgdGC0L7Rh9C90LjQuiDQv9C+0YHRgtC+0Y/QvdC90L7Qs9C+INGB0LLQtdGC0LAuINCU0LXQudGB0YLQstGD0LXRgiDQvdCwINCy0YHQtSDQvt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C/0L7RgdGC0L7Rj9C90L3QvtCz0L4g0YHQstC10YLQsC4g0JTQtdC50YHRgtCy0YPQtdGCINC90LAg0LLRgdC1INC+0LHRitC10LrRgtGLINC4INCy0L4g0LLRgdC10YUg0L3QsNC/0YDQsNCy0LvQtdC90LjRj9GFLlxuICpcbiAqIEBleHRlbmRzIExpZ2h0XG4gKi9cbmNsYXNzIEFtYmllbnRMaWdodCBleHRlbmRzIExpZ2h0IHtcbiAgICBjb25zdHJ1Y3Rvcihjb2xvcikge1xuICAgICAgICBzdXBlcihjb2xvcik7XG5cbiAgICAgICAgLyoqXG4gICAgICAgICAqINCY0YHQv9C+0LvRjNC30YPQtdGC0YHRjyDQtNC70Y8g0L7QsdC+0LfQvdCw0YfQtdC90LjRjyDRgtC40L/QsCDRgdCy0LXRgtCwXG4gICAgICAgICAqIEB0eXBlIHtOdW1iZXJ9XG4gICAgICAgICAqL1xuICAgICAgICB0aGlzLnR5cGUgPSBsaWJDb25zdGFudHMuQU1CSUVOVF9MSUdIVDtcbiAgICB9XG59XG5cbmV4cG9ydCBkZWZhdWx0IEFtYmllbnRMaWdodDtcbiJdfQ== |
@@ -52,2 +52,2 @@ 'use strict'; | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9saWdodHMvRGlyZWN0aW9uYWxMaWdodC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQTs7OztBQUNBOzs7Ozs7Ozs7Ozs7Ozs7Ozs7O0lBUU0sZ0I7OztBQUNGLDRCQUFZLEtBQVosRUFBbUI7QUFBQTs7Ozs7OztBQUFBLG9HQUNULEtBRFM7O0FBT2YsVUFBSyxJQUFMLEdBQVksdUJBQWEsaUJBQXpCO0FBUGU7QUFRbEI7Ozs7O2tCQUdVLGdCIiwiZmlsZSI6IkRpcmVjdGlvbmFsTGlnaHQuanMiLCJzb3VyY2VzQ29udGV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FPZixVQUFLLElBQUwsR0FBWSx1QkFBYSxpQkFBekI7QUFQZTtBQVFsQjs7Ozs7a0JBR1UsZ0IiLCJmaWxlIjoiRGlyZWN0aW9uYWxMaWdodC5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBsaWJDb25zdGFudHMgZnJvbSAnLi4vbGliQ29uc3RhbnRzJztcbmltcG9ydCBMaWdodCBmcm9tICcuL0xpZ2h0JztcblxuLyoqXG4gKiDQmNGB0YLQvtGH0L3QuNC6INC90LDQv9GA0LDQstC70LXQvdC90L7Qs9C+INC+0YHQstC10YnQtdC90LjRjy5cbiAqINCU0LvRjyDRjdGC0L7Qs9C+INGC0LjQv9CwINGB0LLQtdGC0LAg0LLQsNC20L3QviDQvdCw0L/RgNCw0LLQu9C10L3QuNC1LlxuICpcbiAqIEBleHRlbmRzIExpZ2h0XG4gKi9cbmNsYXNzIERpcmVjdGlvbmFsTGlnaHQgZXh0ZW5kcyBMaWdodCB7XG4gICAgY29uc3RydWN0b3IoY29sb3IpIHtcbiAgICAgICAgc3VwZXIoY29sb3IpO1xuXG4gICAgICAgIC8qKlxuICAgICAgICAgKiDQmNGB0L/QvtC70YzQt9GD0LXRgtGB0Y8g0LTQu9GPINC+0LHQvtC30L3QsNGH0LXQvdC40Y8g0YLQuNC/0LAg0YHQstC10YLQsFxuICAgICAgICAgKiBAdHlwZSB7TnVtYmVyfVxuICAgICAgICAgKi9cbiAgICAgICAgdGhpcy50eXBlID0gbGliQ29uc3RhbnRzLkRJUkVDVElPTkFMX0xJR0hUO1xuICAgIH1cbn1cblxuZXhwb3J0IGRlZmF1bHQgRGlyZWN0aW9uYWxMaWdodDtcbiJdfQ== |
@@ -52,2 +52,2 @@ 'use strict'; | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9saWdodHMvTGlnaHQuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs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ozs7OztBQUVBOzs7Ozs7O0lBTU0sSzs7O0FBQ0Y7Ozs7QUFHQSxpQkFBWSxLQUFaLEVBQW1CO0FBQUE7O0FBR2Y7Ozs7O0FBSGU7O0FBT2YsVUFBSyxLQUFMLEdBQWEsS0FBYjtBQVBlO0FBUWxCOzs7OztrQkFHVSxLIiwiZmlsZSI6IkxpZ2h0LmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IE9iamVjdDNEIGZyb20gJy4uL09iamVjdDNEJztcblxuLyoqXG4gKiDQkdCw0LfQvtCy0YvQuSDQutC70LDRgdGBINC00LvRjyDRgdC+0LfQtNCw0L3QuNGPINC40YHRgtC+0YfQvdC40LrQsCDRgdCy0LXRgtCwLlxuICog0KHQsNC8INC/0L4g0YHQtdCx0LUg0L3QtSDQuNGB0L/QvtC70YzQt9GD0LXRgtGB0Y8uXG4gKlxuICogQGV4dGVuZHMgT2JqZWN0M0RcbiAqL1xuY2xhc3MgTGlnaHQgZXh0ZW5kcyBPYmplY3QzRCB7XG4gICAgLyoqXG4gICAgICogQHBhcmFtIHtBcnJheX0gY29sb3Ig0KbQstC10YIg0LIg0YTQvtGA0LzQsNGC0LUgUkdCXG4gICAgICovXG4gICAgY29uc3RydWN0b3IoY29sb3IpIHtcbiAgICAgICAgc3VwZXIoKTtcblxuICAgICAgICAvKipcbiAgICAgICAgICog0KbQstC10YIg0LIg0YTQvtGA0LzQsNGC0LUgUkdCXG4gICAgICAgICAqIEB0eXBlIHtBcnJheX1cbiAgICAgICAgICovXG4gICAgICAgIHRoaXMuY29sb3IgPSBjb2xvcjtcbiAgICB9XG59XG5cbmV4cG9ydCBkZWZhdWx0IExpZ2h0O1xuIl19 |
@@ -9,9 +9,9 @@ 'use strict'; | ||
var _basicFrag = require('../shaders/basic.frag.js'); | ||
var _basicFragGlsl = require('../shaders/basic.frag.glsl.js'); | ||
var _basicFrag2 = _interopRequireDefault(_basicFrag); | ||
var _basicFragGlsl2 = _interopRequireDefault(_basicFragGlsl); | ||
var _basicVert = require('../shaders/basic.vert.js'); | ||
var _basicVertGlsl = require('../shaders/basic.vert.glsl.js'); | ||
var _basicVert2 = _interopRequireDefault(_basicVert); | ||
var _basicVertGlsl2 = _interopRequireDefault(_basicVertGlsl); | ||
@@ -35,4 +35,4 @@ var _Material2 = require('./Material'); | ||
var shader = { | ||
fragment: _basicFrag2.default, | ||
vertex: _basicVert2.default | ||
fragment: _basicFragGlsl2.default, | ||
vertex: _basicVertGlsl2.default | ||
}; | ||
@@ -102,2 +102,2 @@ | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9tYXRlcmlhbHMvQmFzaWNNZXNoTWF0ZXJpYWwuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFBQTs7OztBQUNBOzs7O0FBQ0E7Ozs7QUFDQTs7Ozs7Ozs7Ozs7O0FBRUEsSUFBTSxTQUFTO0FBQ1gsaUNBRFc7QUFFWDtBQUZXLENBQWY7Ozs7Ozs7OztJQVdNLGlCOzs7QUFDRixpQ0FBYztBQUFBOztBQUFBOztBQUdWLGNBQUssV0FBTCxHQUFtQixDQUFDLEVBQUMsTUFBTSxVQUFQLEVBQUQsQ0FBbkI7QUFDQSxjQUFLLFNBQUwsR0FBaUIsQ0FDYixFQUFDLE1BQU0sYUFBUCxFQUFzQixNQUFNLElBQTVCLEVBRGEsRUFFYixFQUFDLE1BQU0sU0FBUCxFQUFrQixNQUFNLE1BQXhCLEVBRmEsRUFHYixFQUFDLE1BQU0sV0FBUCxFQUFvQixNQUFNLE1BQTFCLEVBSGEsRUFJYixFQUFDLE1BQU0sUUFBUCxFQUFpQixNQUFNLEtBQXZCLEVBSmEsQ0FBakI7O0FBT0EsY0FBSyxPQUFMLEdBQWUsTUFBZjs7Ozs7O0FBTUEsY0FBSyxLQUFMLEdBQWEsQ0FBQyxDQUFELEVBQUksQ0FBS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w0YLQtdGA0LjQsNC70LBcbiAgICAgICAgICogQHR5cGUge051bWJlcn1cbiAgICAgICAgICovXG4gICAgICAgIHRoaXMudHlwZSA9IGxpYkNvbnN0YW50cy5CQVNJQ19NRVNIX01BVEVSSUFMO1xuICAgIH1cblxuICAgIF9zaGFkZXJQcm9ncmFtQmluZCh7Z2wsIG9iamVjdCwgY2FtZXJhfSkge1xuICAgICAgICBjb25zdCBhdHRyaWJ1dGVzID0ge307XG4gICAgICAgIHRoaXMuX2F0dHJpYnV0ZXMuZm9yRWFjaChvYmogPT4ge1xuICAgICAgICAgICAgYXR0cmlidXRlc1tvYmoubmFtZV0gPSBvYmplY3QuZ2VvbWV0cnkuZ2V0QnVmZmVyKG9iai5uYW1lKTtcbiAgICAgICAgfSk7XG5cbiAgICAgICAgY29uc3QgdW5pZm9ybXMgPSB7XG4gICAgICAgICAgICB1Q29sb3JBbHBoYTogdGhpcy5vcGFjaXR5LFxuICAgICAgICAgICAgdVBvc2l0aW9uOiBuZXcgRmxvYXQzMkFycmF5KG9iamVjdC53b3JsZE1hdHJpeCksXG4gICAgICAgICAgICB1Q2FtZXJhOiBuZXcgRmxvYXQzMkFycmF5KGNhbWVyYS5tb2RlbFZpZXdNYXRyaXgpLFxuICAgICAgICAgICAgdUNvbG9yOiB0aGlzLmNvbG9yXG4gICAgICAgIH07XG5cbiAgICAgICAgdGhpcy5fc2hhZGVyUHJvZ3JhbS5iaW5kKGdsLCB1bmlmb3JtcywgYXR0cmlidXRlcyk7XG4gICAgfVxufVxuXG5leHBvcnQgZGVmYXVsdCBCYXNpY01lc2hNYXRlcmlhbDtcbiJdfQ== |
@@ -11,9 +11,9 @@ 'use strict'; | ||
var _complexFrag = require('../shaders/complex.frag.js'); | ||
var _complexFragGlsl = require('../shaders/complex.frag.glsl.js'); | ||
var _complexFrag2 = _interopRequireDefault(_complexFrag); | ||
var _complexFragGlsl2 = _interopRequireDefault(_complexFragGlsl); | ||
var _complexVert = require('../shaders/complex.vert.js'); | ||
var _complexVertGlsl = require('../shaders/complex.vert.glsl.js'); | ||
var _complexVert2 = _interopRequireDefault(_complexVert); | ||
var _complexVertGlsl2 = _interopRequireDefault(_complexVertGlsl); | ||
@@ -39,4 +39,4 @@ var _glMatrix = require('gl-matrix'); | ||
var shader = { | ||
fragment: _complexFrag2.default, | ||
vertex: _complexVert2.default | ||
fragment: _complexFragGlsl2.default, | ||
vertex: _complexVertGlsl2.default | ||
}; | ||
@@ -212,2 +212,2 @@ | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9tYXRlcmlhbHMvQ29tcGxleE1lc2hNYXRlcmlhbC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUE7Ozs7QUFDQTs7OztBQUNBOztBQUNBOzs7O0FBQ0E7Ozs7Ozs7Ozs7OztBQUVBLElBQU0sU0FBUztBQUNYLG1DQURXO0FBRVg7QUFGVyxDQUFmOzs7Ozs7Ozs7Ozs7Ozs7Ozs7SUFvQk0sbUI7OztBQUNGLG1DQUFjO0FBQUE7O0FBQUE7O0FBR1YsY0FBSyxXQUFMLEdBQW1CLENBQUMsRUFBQyxNQUFNLFVBQVAsRUFBRCxFQUFxQixFQUFDLE1BQU0sT0FBUCxFQUFyQixFQUFzQyxFQUFDLE1BQU0sVUFBUCxFQUF0QyxDQUFuQjtBQUNBLGNBQUssU0FBTCxHQUFpQixDQUNiLEVBQUMsTUFBTSxhQUFQLEVBQXNCLE1BQU0sSUFBNUIsRUFEYSxFQUViLEVBQUMsTUFBTSxTQUFQLEVBQWtCLE1BQU0sTUFBeEIsRUFGYSxFQUdiLEVBQUMsTUFBTSxXQUFQLEVBQW9CLE1BQU0sTUFBMUIsRUFIYSxFQUliLEVBQUMsTUFBTSxvQkFBUCxFQUE2QixNQUFNLEtBQW5DLEVBSmEsQ0FBakI7O0FBT0EsY0FBSyxPQUFML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qIEBwYXJhbSB7VGV4dHVyZX0gdGV4dHVyZVxuICAgICAqL1xuICAgIHNldFRleHR1cmUodGV4dHVyZSkge1xuICAgICAgICB0aGlzLl90ZXh0dXJlID0gdGV4dHVyZTtcblxuICAgICAgICByZXR1cm4gdGhpcztcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiDQktC+0LfQstGA0LDRidCw0LXRgiDRgtC10LrRg9GJ0YPRjiDRgtC10LrRgdGC0YPRgNGDXG4gICAgICogQHJldHVybnMgez9UZXh0dXJlfVxuICAgICAqL1xuICAgIGdldFRleHR1cmUoKSB7XG4gICAgICAgIHJldHVybiB0aGlzLl90ZXh0dXJlO1xuICAgIH1cblxuICAgIF9wcmVwYXJlKHN0YXRlKSB7XG4gICAgICAgIHRoaXMuX2VuYWJsZUxpZ2h0KHN0YXRlKTtcblxuICAgICAgICBpZiAodGhpcy5fdGV4dHVyZSkge1xuICAgICAgICAgICAgdGhpcy5fZW5hYmxlVGV4dHVyZSgpO1xuICAgICAgICB9XG5cbiAgICAgICAgc3VwZXIuX3ByZXBhcmUoc3RhdGUpO1xuICAgIH1cblxuICAgIF9lbmFibGVMaWdodCh7c2NlbmV9KSB7XG4gICAgICAgIGxldCBkaXJlY3Rpb25MaWdodE51bWJlciA9IDA7XG5cbiAgICAgICAgc2NlbmUuZ2V0TGlnaHRzKCkuZm9yRWFjaChsID0+IHtcbiAgICAgICAgICAgIGlmIChsLnR5cGUgPT09IGxpYkNvbnN0YW50cy5ESVJFQ1RJT05BTF9MSUdIVCkge1xuICAgICAgICAgICAgICAgIGRpcmVjdGlvbkxpZ2h0TnVtYmVyKys7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuXG4gICAgICAgIHRoaXMuZGVmaW5lKCdkaXJlY3Rpb25MaWdodHMnLCBkaXJlY3Rpb25MaWdodE51bWJlcik7XG5cbiAgICAgICAgaWYgKGRpcmVjdGlvbkxpZ2h0TnVtYmVyID4gMCkge1xuICAgICAgICAgICAgdGhpcy5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AgICAgKiBAcGFyYW0ge1RleHR1cmV9IHRleHR1cmVcbiAgICAgKi9cbiAgICBzZXRUZXh0dXJlKHRleHR1cmUpIHtcbiAgICAgICAgdGhpcy5fdGV4dHVyZSA9IHRleHR1cmU7XG5cbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICog0JLQvtC30LLRgNCw0YnQsNC10YIg0YLQtdC60YPRidGD0Y4g0YLQtdC60YHRgtGD0YDRg1xuICAgICAqIEByZXR1cm5zIHs/VGV4dHVyZX1cbiAgICAgKi9cbiAgICBnZXRUZXh0dXJlKCkge1xuICAgICAgICByZXR1cm4gdGhpcy5fdGV4dHVyZTtcbiAgICB9XG5cbiAgICBfcHJlcGFyZShzdGF0ZSkge1xuICAgICAgICB0aGlzLl9lbmFibGVMaWdodChzdGF0ZSk7XG5cbiAgICAgICAgaWYgKHRoaXMuX3RleHR1cmUpIHtcbiAgICAgICAgICAgIHRoaXMuX2VuYWJsZVRleHR1cmUoKTtcbiAgICAgICAgfVxuXG4gICAgICAgIHN1cGVyLl9wcmVwYXJlKHN0YXRlKTtcbiAgICB9XG5cbiAgICBfZW5hYmxlTGlnaHQoe3NjZW5lfSkge1xuICAgICAgICBsZXQgZGlyZWN0aW9uTGlnaHROdW1iZXIgPSAwO1xuXG4gICAgICAgIHNjZW5lLmdldExpZ2h0cygpLmZvckVhY2gobCA9PiB7XG4gICAgICAgICAgICBpZiAobC50eXBlID09PSBsaWJDb25zdGFudHMuRElSRUNUSU9OQUxfTElHSFQpIHtcbiAgICAgICAgICAgICAgICBkaXJlY3Rpb25MaWdodE51bWJlcisrO1xuICAgICAgICAgICAgfVxuICAgICAgICB9KTtcblxuICAgICAgICB0aGlzLmRlZmluZSgnZGlyZWN0aW9uTGlnaHRzJywgZGlyZWN0aW9uTGlnaHROdW1iZXIpO1xuXG4gICAgICAgIGlmIChkaXJlY3Rpb25MaWdodE51bWJlciA+IDApIHtcbiAgICAgICAgICAgIHRo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1xuICAgICAgICB1bmlmb3Jtcy51Q29sb3JBbHBoYSA9IHRoaXMub3BhY2l0eTtcblxuICAgICAgICB0aGlzLl9zaGFkZXJQcm9ncmFtLmJpbmQoZ2wsIHVuaWZvcm1zLCBhdHRyaWJ1dGVzKTtcbiAgICB9XG59XG5cbmV4cG9ydCBkZWZhdWx0IENvbXBsZXhNZXNoTWF0ZXJpYWw7XG4iXX0= |
@@ -21,2 +21,6 @@ 'use strict'; | ||
var _Shader = require('../Shader'); | ||
var _Shader2 = _interopRequireDefault(_Shader); | ||
require('../rendererPlugins/CommonPlugin'); | ||
@@ -151,7 +155,6 @@ | ||
this._shaderProgram = new _ShaderProgram2.default({ | ||
vertex: this._shader.vertex, | ||
fragment: this._shader.fragment, | ||
vertex: new _Shader2.default('vertex', this._shader.vertex, this._definitions), | ||
fragment: new _Shader2.default('fragment', this._shader.fragment, this._definitions), | ||
uniforms: this._uniforms, | ||
attributes: this._attributes, | ||
definitions: this._definitions | ||
attributes: this._attributes | ||
}); | ||
@@ -188,2 +191,2 @@ | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9tYXRlcmlhbHMvTWF0ZXJpYWwuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFBQTs7OztBQUNBOzs7O0FBQ0E7Ozs7QUFDQTs7QUFDQTs7Ozs7O0FBRUEsSUFBTSxpQkFBaUIsRUFBdkI7Ozs7OztJQUtNLFE7QUFDRix3QkFBYztBQUFBOztBQUNWLGFBQUssV0FBTCxHQUFtQixFQUFuQjtBQUNBLGFBQUssU0FBTCxHQUFpQixDQUFDO0FBQ2Qsa0JBQU0sYUFEUTtBQUVkLGtCQUFNO0FBRlEsU0FBRCxDQUFqQjs7QUFLQSxhQUFLLFlBQUwsR0FBb0IsRUFBcEI7QUFDQSxhQUFLLE9BQUwsR0FBZSxJQUFmOzs7Ozs7Q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oaXMuX3NoYWRlci52ZXJ0ZXgsXG4gICAgICAgICAgICBmcmFnbWVudDogdGhpcy5fc2hhZGVyLmZyYWdtZW50LFxuICAgICAgICAgICAgdW5pZm9ybXM6IHRoaXMuX3VuaWZvcm1zLFxuICAgICAgICAgICAgYXR0cmlidXRlczogdGhpcy5fYXR0cmlidXRlcyxcbiAgICAgICAgICAgIGRlZmluaXRpb25zOiB0aGlzLl9kZWZpbml0aW9uc1xuICAgICAgICB9KTtcblxuICAgICAgICBjYWNoZWRQcm9ncmFtc1t0aGlzLl9nZXRDYWNoZWRQcm9ncmFtS2V5KCldID0ge1xuICAgICAgICAgICAgZ2xDb250ZXh0OiBnbCxcbiAgICAgICAgICAgIHByb2dyYW06IHRoaXMuX3NoYWRlclByb2dyYW1cbiAgICAgICAgfTtcbiAgICB9XG5cbiAgICBfc2hhZGVyUHJvZ3JhbUJpbmQoe2dsLCBvYmplY3R9KSB7XG4gICAgICAgIGNvbnN0IGF0dHJpYnV0ZXMgPSB7fTtcbiAgICAgICAgdGhpcy5fYXR0cmlidXRlcy5mb3JFYWNoKG9iaiA9PiB7XG4gICAgICAgICAgICBhdHRyaWJ1dGVzW29iai5uYW1lXSA9IG9iamVjdC5nZW9tZXRyeS5nZXRCdWZmZXIob2JqLm5hbWUpO1xuICAgICAgICB9KTtcblxuICAgICAgICBjb25zdCB1bmlmb3JtcyA9IHtcbiAgICAgICAgICAgIHVDb2xvckFscGhhOiB0aGlzLm9wYWNpdHlcbiAgICAgICAgfTtcblxuICAgICAgICB0aGlzLl9zaGFkZXJQcm9ncmFtLmJpbmQoZ2wsIHVuaWZvcm1zLCBhdHRyaWJ1dGVzKTtcbiAgICB9XG59XG5cbmV4cG9ydCBkZWZhdWx0IE1hdGVyaWFsO1xuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9tYXRlcmlhbHMvTWF0ZXJpYWwuanMiXSwibmFtZXMiOltdLC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8g0YLQuNC/0LAg0LzQsNGC0LXRgNC40LDQu9CwXG4gICAgICAgICAqIEB0eXBlIHtOdW1iZXJ9XG4gICAgICAgICAqL1xuICAgICAgICB0aGlzLnR5cGUgPSBsaWJDb25zdGFudHMuTVVMVElfU1BSSVRFX01BVEVSSUFMO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqINCj0YHRgtCw0L3QsNCy0LvQuNCy0LDQtdGCINGC0LXQutGB0YLRg9GA0YMg0LTQu9GPINGB0L/RgNCw0LnRgtCwXG4gICAgICogQHBhcmFtIHtUZXh0dXJlfSB0ZXh0dXJlXG4gICAgICovXG4gICAgc2V0VGV4dHVyZSh0ZXh0dXJlKSB7XG4gICAgICAgIHRoaXMuX3RleHR1cmUgPSB0ZXh0dXJlO1xuXG4gICAgICAgIHJldHVybiB0aGlzO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqINCS0L7Qt9Cy0YDQsNGJ0LDQtdGCINGC0LXQutGD0YnRg9GOINGC0LXQutGB0YLRg9GA0YNcbiAgICAgKiBAcmV0dXJucyB7P1RleHR1cmV9XG4gICAgICovXG4gICAgZ2V0VGV4dHVyZSgpIHtcbiAgICAgICAgcmV0dXJuIHRoaXMuX3RleHR1cmU7XG4gICAgfVxuXG4gICAgZW5hYmxlKHtnbCwgc2hhZGVyUHJvZ3JhbX0pIHtcbiAgICAgICAgc2hhZGVyUHJvZ3JhbS5iaW5kKGdsLCB7XG4gICAgICAgICAgICB1U21vb3RoaW5nOiB0aGlzLnNtb290aGluZ1xuICAgICAgICB9KTtcblxuICAgICAgICBpZiAodGhpcy5fdGV4dHVyZSkge1xuICAgICAgICAgICAgdGhpcy5fdGV4dHVyZS5lbmFibGUoZ2wpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgZGlzYWJsZSgpIHt9XG59XG5cbmV4cG9ydCBkZWZhdWx0IE11bHRpU3ByaXRlTWF0ZXJpYWw7XG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJza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ldHVybnMgez9UZXh0dXJlfVxuICAgICAqL1xuICAgIGdldFRleHR1cmUoKSB7XG4gICAgICAgIHJldHVybiB0aGlzLl90ZXh0dXJlO1xuICAgIH1cblxuICAgIGVuYWJsZSh7Z2wsIHNoYWRlclByb2dyYW19KSB7XG4gICAgICAgIHNoYWRlclByb2dyYW0uYmluZChnbCwge1xuICAgICAgICAgICAgdVNtb290aGluZzogdGhpcy5zbW9vdGhpbmdcbiAgICAgICAgfSk7XG5cbiAgICAgICAgaWYgKHRoaXMuX3RleHR1cmUpIHtcbiAgICAgICAgICAgIHRoaXMuX3RleHR1cmUuZW5hYmxlKGdsKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIGRpc2FibGUoKSB7fVxufVxuXG5leHBvcnQgZGVmYXVsdCBNdWx0aVNwcml0ZU1hdGVyaWFsO1xuIl19 |
@@ -95,2 +95,2 @@ 'use strict'; | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9tYXRlcmlhbHMvU3ByaXRlTWF0ZXJpYWwuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFBQTs7Ozs7Ozs7Ozs7Ozs7SUFPTSxjO0FBQ0YsOEJBQWM7QUFBQTs7QUFDVixhQUFLLE9BQUwsR0FBZSxDQUFmO0FBQ0EsYUFBSyxTQUFMLEdBQWlCLENBQWpCO0FBQ0EsYUFBSyxRQUFMLEdBQWdCLElBQWhCOzs7Ozs7QUFNQSxhQUFLLElBQUwsR0FBWSx1QkFBYSxlQUF6QjtBQUNIOzs7Ozs7Ozs7O21DQU1VLE8sRUFBUztBQUNoQixpQkFBSyxRQUFMLEdBQWdCLE9BQWhCOztBQUVBLG1CQUFPLElBQVA7QUFDSDs7Ozs7Ozs7O3FDQU1ZO0FBQ1QsbUJBQU8sS0FBSyxRQUFaO0FBQ0g7OztxQ0FFNkM7QUFBQSxnQkFB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70YzQutC+INGB0LLRj9C30YvQstCw0L3QuNC1INGI0LXQudC00LXRgNCwINGBINGD0L3QuNGE0L7RgNC80LDQvNC4LlxuICog0J7RgdGC0LDQstC70LXQvdCwINC00LvRjyDQtdC00LjQvdC+0L7QsdGA0LDQt9C40Y8g0YHQuNC90YLQsNC60YHQuNGB0LAuXG4gKi9cbmNsYXNzIFNwcml0ZU1hdGVyaWFsIHtcbiAgICBjb25zdHJ1Y3RvcigpIHtcbiAgICAgICAgdGhpcy5vcGFjaXR5ID0gMTtcbiAgICAgICAgdGhpcy5zbW9vdGhpbmcgPSAwO1xuICAgICAgICB0aGlzLl90ZXh0dXJlID0gbnVsbDtcblxuICAgICAgICAvKipcbiAgICAgICAgICog0JjRgdC/0L7Qu9GM0LfRg9C10YLRgdGPINC00LvRjyDQvtCx0L7Qt9C90LDRh9C10L3QuNGPINGC0LjQv9CwINC80LDRgtC10YDQuNCw0LvQsFxuICAgICAgICAgKiBAdHlwZSB7TnVtYmVyfVxuICAgICAgICAgKi9cbiAgICAgICAgdGhpcy50eXBlID0gbGliQ29uc3RhbnRzLlNQUklURV9NQVRFUklBTDtcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiDQo9GB0YLQsNC90LDQstC70LjQstCw0LXRgiDRgtC10LrRgdGC0YPRgNGDINC00LvRjyDRgdC/0YDQsNC50YLQsFxuICAgICAqIEBwYXJhbSB7VGV4dHVyZX0gdGV4dHVyZVxuICAgICAqL1xuICAgIHNldFRleHR1cmUodGV4dHVyZSkge1xuICAgICAgICB0aGlzLl90ZXh0dXJlID0gdGV4dHVyZTtcblxuICAgICAgICByZXR1cm4gdGhpcztcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiDQktC+0LfQstGA0LDRidCw0LXRgiDRgtC10LrRg9GJ0YPRjiDRgtC10LrRgdGC0YPRgNGDXG4gICAgICogQHJldHVybnMgez9UZXh0dXJlfVxuICAgICAqL1xuICAgIGdldFRleHR1cmUoKSB7XG4gICAgICAgIHJldHV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ZnJ1c3R1bVxuICAgICAqL1xuICAgIGNvbnN0cnVjdG9yKHBsYW5lcykge1xuICAgICAgICB0aGlzLnBsYW5lcyA9IHBsYW5lcztcblxuICAgICAgICBpZiAoIXRoaXMucGxhbmVzIHx8IHRoaXMucGxhbmVzLmxlbmd0aCAhPT0gNikge1xuICAgICAgICAgICAgdGhpcy5wbGFuZXMgPSBbXG4gICAgICAgICAgICAgICAgbmV3IFBsYW5lKCksXG4gICAgICAgICAgICAgICAgbmV3IFBsYW5lKCksXG4gICAgICAgICAgICAgICAgbmV3IFBsYW5lKCksXG4gICAgICAgICAgICAgICAgbmV3IFBsYW5lKCksXG4gICAgICAgICAgICAgICAgbmV3IFBsYW5lKCksXG4gICAgICAgICAgICAgICAgbmV3IFBsYW5lKClcbiAgICAgICAgICAgIF07XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiDQo9GB0YLQsNC90LDQstC70LjQstCw0LXRgiDQv9C70L7RgdC60L7RgdGC0LggZnJ1c3R1bSDQsiDRgdC+0L7RgtCy0LXRgtGB0YLQstC40LUg0YEg0LzQsNGC0YDQuNGG0LXQuVxuICAgICAqIEBwYXJhbSB7bWF0NH0gbVxuICAgICAqL1xuICAgIHNldEZyb21NYXRyaXgobSkge1xuICAgICAgICBjb25zdCBwbGFuZXMgPSB0aGlzLnBsYW5lcztcblxuICAgICAgICBwbGFuZXNbMF0uc2V0Q29tcG9uZW50cyhtWzNdIC0gbVswXSwgbVs3XSAtIG1bNF0sIG1bMTFdIC0gbVs4XSwgbVsxNV0gLSBtWzEyXSkubm9ybWFsaXplKCk7XG4gICAgICAgIHBsYW5lc1sxXS5zZXRDb21wb25lbnRzKG1bM10gKyBtWzBdLCBtWzddICsgbVs0XSwgbVsxMV0gKyBtWzhdLCBtWzE1XSArIG1bMTJdKS5ub3JtYWxpemUoKTtcbiAgICAgICAgcGxhbmVzWzJdLnNldENvbXBvbmVudHMobVszXSArIG1bMV0sIG1bN10gKyBtWzVdLC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ICAgcDJbMF0gPSBwbGFuZS5ub3JtYWxbMF0gPiAwID8gYm94Lm1heFswXSA6IGJveC5taW5bMF07XG4gICAgICAgICAgICBwMVsxXSA9IHBsYW5lLm5vcm1hbFsxXSA+IDAgPyBib3gubWluWzFdIDogYm94Lm1heFsxXTtcbiAgICAgICAgICAgIHAyWzFdID0gcGxhbmUubm9ybWFsWzFdID4gMCA/IGJveC5tYXhbMV0gOiBib3gubWluWzFdO1xuICAgICAgICAgICAgcDFbMl0gPSBwbGFuZS5ub3JtYWxbMl0gPiAwID8gYm94Lm1pblsyXSA6IGJveC5tYXhbMl07XG4gICAgICAgICAgICBwMlsyXSA9IHBsYW5lLm5vcm1hbFsyXSA+IDAgPyBib3gubWF4WzJdIDogYm94Lm1pblsyXTtcblxuICAgICAgICAgICAgY29uc3QgZDEgPSBwbGFuZS5kaXN0YW5jZVRvUG9pbnQocDEpO1xuICAgICAgICAgICAgY29uc3QgZDIgPSBwbGFuZS5kaXN0YW5jZVRvUG9pbnQocDIpO1xuXG4gICAgICAgICAgICAvLyBpZiBib3RoIG91dHNpZGUgcGxhbmUsIG5vIGludGVyc2VjdGlvblxuICAgICAgICAgICAgaWYgKGQxIDwgMCAmJiBkMiA8IDApIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICB9XG59XG5cbmV4cG9ydCBkZWZhdWx0IEZydXN0dW07XG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9tYXRoL0ZydXN0dW0uanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFBQTs7QUFDQTs7Ozs7Ozs7QUFFQTs7Ozs7O0lBS00sTztBQUNGOzs7O0FBR0EscUJBQVksTUFBWixFQUFvQjtBQUFBOztBQUNoQixhQUFLLE1BQUw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AgICAgICAgcGxhbmVzWzVdLnNldENvbXBvbmVudHMobVszXSArIG1bMl0sIG1bN10gKyBtWzZdLCBtWzExXSArIG1bMTBdLCBtWzE1XSArIG1bMTRdKS5ub3JtYWxpemUoKTtcblxuICAgICAgICByZXR1cm4gdGhpcztcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiDQn9GA0L7QstC10YDRj9C10YIsINC90LDRhdC+0LTQuNGC0YHRjyDQu9C4IHtAbGluayBCb3h9INCyINC+0LHQu9Cw0YHRgtC4IGZydXN0dW1cbiAgICAgKiBAcGFyYW0ge0JveH0gYm94XG4gICAgICogQHJldHVybnMge0Jvb2xlYW59XG4gICAgICovXG4gICAgaW50ZXJzZWN0c0JveChib3gpIHtcbiAgICAgICAgY29uc3QgcDEgPSB2ZWMzLmNyZWF0ZSgpO1xuICAgICAgICBjb25zdCBwMiA9IHZlYzMuY3JlYXRlKCk7XG4gICAgICAgIGNvbnN0IHBsYW5lcyA9IHRoaXMucGxhbmVzO1xuXG4gICAgICAgIGZvciAobGV0IGkgPSAwOyBpIDwgNjsgaSsrKSB7XG4gICAgICAgICAgICBjb25zdCBwbGFuZSA9IHBsYW5lc1tpXTtcblxuICAgICAgICAgICAgcDFbMF0gPSBwbGFuZS5ub3JtYWxbMF0gPiAwID8gYm94Lm1pblswXSA6IGJveC5tYXhbMF07XG4gICAgICAgICAgICBwMlswXSA9IHBsYW5lLm5vcm1hbFswXSA+IDAgPyBib3gubWF4WzBdIDogYm94Lm1pblswXTtcbiAgICAgICAgICAgIHAxWzFdID0gcGxhbmUubm9ybWFsWzFdID4gMCA/IGJveC5taW5bMV0gOiBib3gubWF4WzFdO1xuICAgICAgICAgICAgcDJbMV0gPSBwbGFuZS5ub3JtYWxbMV0gPiAwID8gYm94Lm1heFsxXSA6IGJveC5taW5bMV07XG4gICAgICAgICAgICBwMVsyXSA9IHBsYW5lLm5vcm1hbFsyXSA+IDAgPyBib3gubWluWzJdIDogYm94Lm1heFsyXTtcbiAgICAgICAgICAgIHAyWzJdID0gcGxhbmUubm9ybWFsWzJdID4gMCA/IGJveC5tYXhbMl0gOiBib3gubWluWzJdO1xuXG4gICAgICAgICAgICBjb25zdCBkMSA9IHBsYW5lLmRpc3RhbmNlVG9Qb2ludChwMSk7XG4gICAgICAgICAgICBjb25zdCBkMiA9IHBsYW5lLmRpc3RhbmNlVG9Qb2ludChwMik7XG5cbiAgICAgICAgICAgIC8vIGlmIGJvdGggb3V0c2lkZSBwbGFuZSwgbm8gaW50ZXJzZWN0aW9uXG4gICAgICAgICAgICBpZiAoZDEgPCAwICYmIGQyIDwgMCkge1xuICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiB0cnVlO1xuICAgIH1cbn1cblxuZXhwb3J0IGRlZmF1bHQgRnJ1c3R1bTtcbiJdfQ== |
@@ -106,2 +106,2 @@ 'use strict'; | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9tYXRoL0xpbmUzLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7O0FBQUE7O0FBQ0E7Ozs7Ozs7Ozs7SUFPTSxLOzs7Ozs7QUFLRixtQkFBWSxLQUFaLEVBQW1CLEdBQW5CLEVBQXdCO0FBQUE7O0FBQ3BCLGFBQUssS0FBTCxHQUFhLFNBQVMsZUFBSyxNQUFMLEVBQXRCO0FBQ0EsYUFBSyxHQUFMLEdBQVcsT0FBTyxlQUFLLE1BQUwsRUFBbEI7QUFDSDs7Ozs7Ozs7Ozs7OztxREFTNEIsSyxFQUFPLFcsRUFBYTtBQUM3QyxnQkFBTSxTQUFTLGVBQUssTUFBTCxFQUFmO0FBQ0EsZ0JBQU0sV0FBVyxlQUFLLE1BQUwsRUFBakI7O0FBRUEsMkJBQUssR0FBTCxDQUFTLE1BQVQsRUFBaUI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biA9IChib3gubWluWzBdIC0gb3JpZ2luWzBdKSAqIGludmRpcng7XG4gICAgICAgICAgICB0bWF4ID0gKGJveC5tYXhbMF0gLSBvcmlnaW5bMF0pICogaW52ZGlyeDtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHRtaW4gPSAoYm94Lm1heFswXSAtIG9yaWdpblswXSkgKiBpbnZkaXJ4O1xuICAgICAgICAgICAgdG1heCA9IChib3gubWluWzBdIC0gb3JpZ2luWzBdKSAqIGludmRpcng7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoaW52ZGlyeSA+PSAwKSB7XG4gICAgICAgICAgICB0eW1pbiA9IChib3gubWluWzFdIC0gb3JpZ2luWzFdKSAqIGludmRpcnk7XG4gICAgICAgICAgICB0eW1heCA9IChib3gubWF4WzFdIC0gb3JpZ2luWzFdKSAqIGludmRpcnk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICB0eW1pbiA9IChib3gubWF4WzFdIC0gb3JpZ2luWzFdKSAqIGludmRpcnk7XG4gICAgICAgICAgICB0eW1heCA9IChib3gubWluWzFdIC0gb3JpZ2luWzFdKSAqIGludmRpcnk7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoKHRtaW4gPiB0eW1heCkgfHwgKHR5bWluID4gdG1heCkpIHsgcmV0dXJuIG51bGw7IH1cblxuICAgICAgICAvLyBUaGVzZSBsaW5lcyBhbHNvIGhhbmRsZSB0aGUgY2FzZSB3aGVyZSB0bWluIG9yIHRtYXggaXMgTmFOXG4gICAgICAgIC8vIChyZXN1bHQgb2YgMCAqIEluZmluaXR5KS4geCAhPT0geCByZXR1cm5zIHRydWUgaWYgeCBpcyBOYU5cbiAgICAgICAgaWYgKHR5bWluID4gdG1pbiB8fCB0bWluICE9PSB0bWluKSB7IHRtaW4gPSB0eW1pbjsgfVxuXG4gICAgICAgIGlmICh0eW1heCA8IHRtYXggfHwgdG1heCAhPT0gdG1heCkgeyB0bWF4ID0gdHltYXg7IH1cblxuICAgICAgICBpZiAoaW52ZGlyeiA+PSAwKSB7XG4gICAgICAgICAgICB0em1pbiA9IChib3gubWluWzJdIC0gb3JpZ2luWzJdKSAqIGludmRpcno7XG4gICAgICAgICAgICB0em1heCA9IChib3gubWF4WzJdIC0gb3JpZ2luWzJdKSAqIGludmRpcno7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICB0em1pbiA9IChib3gubWF4WzJdIC0gb3JpZ2luWzJdKSAqIGludmRpcno7XG4gICAgICAgICAgICB0em1heCA9IChib3gubWluWzJdIC0gb3JpZ2luWzJdKSAqIGludmRpcno7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoKHRtaW4gPiB0em1heCkgfHwgKHR6bWluID4gdG1heCkpIHsgcmV0dXJuIG51bGw7IH1cblxuICAgICAgICBpZiAodHptaW4gPiB0bWluIHx8IHRtaW4gIT09IHRtaW4pIHsgdG1pbiA9IHR6bWluOyB9XG5cbiAgICAgICAgaWYgKHR6bWF4IDwgdG1heCB8fCB0bWF4ICE9PSB0bWF4KSB7IHRtYXggPSB0em1heDsgfVxuXG4gICAgICAgIC8vIHJldHVybiBwb2ludCBjbG9zZXN0IHRvIHRoZSByYXkgKHBvc2l0aXZlIHNpZGUpXG4gICAgICAgIGlmICh0bWF4IDwgMCkgeyByZXR1cm4gbnVsbDsgfVxuXG4gICAgICAgIHJldHVybiB0aGlzLmF0KHRtaW4gPj0gMCA/IHRtaW4gOiB0bWF4KTtcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiDQmNC30LzQtdC90Y/QtdGCINC90LDQv9GA0LDQstC70LXQvdC40LUg0LvRg9GH0LAg0YEg0L/QvtC80L7RidGM0Y4g0LzQsNGC0YDQuNGG0YtcbiAgICAgKiBAcGFyYW0ge21hdDR9IG1hdHJpeFxuICAgICAqL1xuICAgIGFwcGx5TWF0cml4NChtYXRyaXgpIHtcbiAgICAgICAgdmVjMy5hZGQodGhpcy5kaXJlY3Rpb24sIHRoaXMuZGlyZWN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lY2sgaWYgcmF5IGRvZXMuXG4gICAgICAgIGNvbnN0IFFkTiA9IC1zaWduICogdmVjMy5kb3QoZGlmZiwgbm9ybWFsKTtcblxuICAgICAgICAvLyB0IDwgMCwgbm8gaW50ZXJzZWN0aW9uXG4gICAgICAgIGlmIChRZE4gPCAwKSB7XG4gICAgICAgICAgICByZXR1cm4gbnVsbDtcbiAgICAgICAgfVxuXG4gICAgICAgIC8vIFJheSBpbnRlcnNlY3RzIHRyaWFuZ2xlLlxuICAgICAgICByZXR1cm4gdGhpcy5hdChRZE4gLyBEZE4pO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqINCY0YnQtdGCINGA0LDRgdGB0YLQvtGP0L3QuNC1INC+0YIg0L3QsNGH0LDQu9CwINC70YPRh9CwINC00L4g0L/Qu9C+0YHQutC+0YHRgtC4XG4gICAgICogQHBhcmFtIHtQbGFuZX0gcGxhbmVcbiAgICAgKiBAcmV0dXJucyB7P051bWJlcn1cbiAgICAgKi9cbiAgICBkaXN0YW5jZVRvUGxhbmUocGxhbmUpIHtcbiAgICAgICAgY29uc3QgZGVub21pbmF0b3IgPSB2ZWMzLmRvdChwbGFuZS5ub3JtYWwsIHRoaXMuZGlyZWN0aW9uKTtcblxuICAgICAgICBpZiAoZGVub21pbmF0b3IgPT09IDApIHtcbiAgICAgICAgICAgIC8vIGxpbmUgaXMgY29wbGFuYXIsIHJldHVybiBvcmlnaW5cbiAgICAgICAgICAgIGlmIChwbGFuZS5kaXN0YW5jZVRvUG9pbnQodGhpcy5vcmlnaW4pID09PSAwKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIDA7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIC8vIE51bGwgaXMgcHJlZmVyYWJsZSB0byB1bmRlZmluZWQgc2luY2UgdW5kZWZpbmVkIG1lYW5zLi4uLiBpdCBpcyB1bmRlZmluZWRcbiAgICAgICAgICAgIHJldHVybiBudWxsO1xuICAgICAgICB9XG5cbiAgICAgICAgY29uc3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mVzdWx0LCB0aGlzLm9yaWdpbiwgdGhpcy5kaXJlY3Rpb24sIHQpO1xuICAgICAgICByZXR1cm4gcmVzdWx0O1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqINCf0YDQvtCy0LXRgNGP0LXRgiDQv9C10YDQtdGB0LXQutCw0LXRgiDQu9C4INC70YPRhyDQv9Cw0YDQsNC70LXQu9C10L/QuNC/0LXQtFxuICAgICAqIEBwYXJhbSB7Qm94fSBib3hcbiAgICAgKiBAcmV0dXJucyB7P3ZlYzN9INCi0L7Rh9C60LAg0L/QtdGA0LXRgdC10YfQtdC90LjRjyDQuNC70LggbnVsbFxuICAgICAqL1xuICAgIGludGVyc2VjdEJveChib3gpIHtcbiAgICAgICAgbGV0IHRtaW4sIHRtYXgsIHR5bWluLCB0eW1heCwgdHptaW4sIHR6bWF4O1xuXG4gICAgICAgIGNvbnN0IGludmRpcnggPSAxIC8gdGhpcy5kaXJlY3Rpb25bMF07XG4gICAgICAgIGNvbnN0IGludmRpcnkgPSAxIC8gdGhpcy5kaXJlY3Rpb25bMV07XG4gICAgICAgIGNvbnN0IGludmRpcnogPSAxIC8gdGhpcy5kaXJlY3Rpb25bMl07XG5cbiAgICAgICAgY29uc3Qgb3JpZ2luID0gdGhpcy5vcmlnaW47XG5cbiAgICAgICAgaWYgKGludmRpcnggPj0gMCkge1xuICAgICAgICAgICAgdG1pbiA9IChib3gubWluWzBdIC0gb3JpZ2luWzBdKSAqIGludmRpcng7XG4gICAgICAgICAgICB0bWF4ID0gKGJveC5tYXhbMF0gLSBvcmlnaW5bMF0pICogaW52ZGlyeDtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHRtaW4gPSAoYm94Lm1heFswXSAtIG9yaWdpblswXSkgKiBpbnZkaXJ4O1xuICAgICAgICAgICAgdG1heCA9IChib3gubWluWzBdIC0gb3JpZ2luWzBdKSAqIGludmRpcng7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoaW52ZGlyeSA+PSAwKSB7XG4gICAgICAgICAgICB0eW1pbiA9IChib3gubWluWzFdIC0gb3JpZ2luWzFdKSAqIGludmRpcnk7XG4gICAgICAgICAgICB0eW1heCA9IChib3gubWF4WzFdIC0gb3JpZ2luWzFdKSAqIGludmRpcnk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICB0eW1pbiA9IChib3gubWF4WzFdIC0gb3JpZ2luWzFdKSAqIGludmRpcnk7XG4gICAgICAgICAgICB0eW1heCA9IChib3gubWluWzFdIC0gb3JpZ2luWzFdKSAqIGludmRpcnk7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoKHRtaW4gPiB0eW1heCkgfHwgKHR5bWluID4gdG1heCkpIHsgcmV0dXJuIG51bGw7IH1cblxuICAgICAgICAvLyBUaGVzZSBsaW5lcyBhbHNvIGhhbmRsZSB0aGUgY2FzZSB3aGVyZSB0bWluIG9yIHRtYXggaXMgTmFOXG4gICAgICAgIC8vIChyZXN1bHQgb2YgMCAqIEluZmluaXR5KS4geCAhPT0geCByZXR1cm5zIHRydWUgaWYgeCBpcyBOYU5cbiAgICAgICAgaWYgKHR5bWluID4gdG1pbiB8fCB0bWluICE9PSB0bWluKSB7IHRtaW4gPSB0eW1pbjsgfVxuXG4gICAgICAgIGlmICh0eW1heCA8IHRtYXggfHwgdG1heCAhPT0gdG1heCkgeyB0bWF4ID0gdHltYXg7IH1cblxuICAgICAgICBpZiAoaW52ZGlyeiA+PSAwKSB7XG4gICAgICAgICAgICB0em1pbiA9IChib3gubWluWzJdIC0gb3JpZ2luWzJdKSAqIGludmRpcno7XG4gICAgICAgICAgICB0em1heCA9IChib3gubWF4WzJdIC0gb3JpZ2luWzJdKSAqIGludmRpcno7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICB0em1pbiA9IChib3gubWF4WzJdIC0gb3JpZ2luWzJdKSAqIGludmRpcno7XG4gICAgICAgICAgICB0em1heCA9IChib3gubWluWzJdIC0gb3JpZ2luWzJdKSAqIGludmRpc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Cw0L3QvdGD0Y4g0L/Qu9C+0YHQutC+0YHRgtGMXG4gICAgICogQHBhcmFtIHtQbGFuZX0gcGxhbmVcbiAgICAgKiBAcmV0dXJucyB7P3ZlYzN9INCi0L7Rh9C60LAg0L/QtdGA0LXRgdC10YfQtdC90LjRjyDQuNC70LggbnVsbFxuICAgICAqL1xuICAgIGludGVyc2VjdFBsYW5lKHBsYW5lKSB7XG4gICAgICAgIGNvbnN0IHQgPSB0aGlzLmRpc3RhbmNlVG9QbGFuZShwbGFuZSk7XG5cbiAgICAgICAgaWYgKHQgPT09IG51bGwpIHtcbiAgICAgICAgICAgIHJldHVybiBudWxsO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIHRoaXMuYXQodCk7XG4gICAgfVxufVxuXG5leHBvcnQgZGVmYXVsdCBSYXk7XG4iXX0= |
14
Mesh.js
@@ -15,4 +15,2 @@ 'use strict'; | ||
var _libConstants2 = _interopRequireDefault(_libConstants); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -59,6 +57,14 @@ | ||
/** | ||
* Определяет порядок отрисовки объектов с выключенным фильтром глубины. | ||
* Работает примерно также как и z-index у dom элементов. | ||
* Также этот порядок учитывается при отрисовки прозрачных мешей. | ||
* @type {number} | ||
*/ | ||
_this.renderOrder = 0; | ||
/** | ||
* Используется для обозначения типа объекта | ||
* @type {Number} | ||
*/ | ||
_this.type = _libConstants2.default.MESH; | ||
_this.type = _libConstants.MESH; | ||
return _this; | ||
@@ -125,2 +131,2 @@ } | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9NZXNoLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7O0FBQUE7Ozs7QUFDQTs7Ozs7Ozs7Ozs7Ozs7Ozs7O0lBT00sSTs7Ozs7Ozs7QUFLRixnQkFBWSxRQUFaLEVBQXNCLF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RhcnQgKyA0XSA9IHZhbHVlO1xuICAgICAgICBhcnJbc3RhcnQgKyA1XSA9IHZhbHVlO1xuXG4gICAgICAgIHRoaXMuX2RhdGEuY29sb3JBbHBoYS5kaXJ0eSA9IHRydWU7XG5cbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICog0KPRgdGC0LDQvdCw0LLQu9C40LLQsNC10YIg0YHQv9GA0LDQudGC0YMg0L/QvtC30LjRhtC40Y5cbiAgICAgKlxuICAgICAqIEBwYXJhbSB7TnVtYmVyfSBzcHJpdGVJbmRleCDQmNC90LTQtdC60YEg0YHQv9GA0LDQudGC0LBcbiAgICAgKiBAcGFyYW0ge3ZlYzJ9ICAgdmFsdWUgICAgICAg0J3QvtCy0L7QtSDQt9C90LDRh9C10L3QuNC1INC/0L7Qt9C40YbQuNC4XG4gICAgICovXG4gICAgc2V0UG9zaXRpb24oc3ByaXRlSW5kZXgsIHZhbHVlKSB7XG4gICAgICAgIGNvbnN0IGFyciA9IHRoaXMuX2RhdGEucG9zaXRpb24uYXJyYXk7XG4gICAgICAgIGNvbnN0IHN0YXJ0ID0gc3ByaXRlSW5kZXggKiAxODtcblxuICAgICAgICBhcnJbc3RhcnRdID0gdmFsdWVbMF07IGFycltzdGFydCArIDFdID0gdmFsdWVbMV07XG4gICAgICAgIGFycltzdGFydCArIDNdID0gdmFsdWVbMF07IGFycltzdGFydCArIDRdID0gdmFsdWVbMV07XG4gICAgICAgIGFycltzdGFydCArIDZdID0gdmFsdWVbMF07IGFycltzdGFydCArIDddID0gdmFsdWVbMV07XG4gICAgICAgIGFycltzdGFydCArIDldID0gdmFsdWVbMF07IGFycltzdGFydCArIDEwXSA9IHZhbHVlWzFdO1xuICAgICAgICBhcnJbc3RhcnQgKyAxMl0gPSB2YWx1ZVswXTsgYXJyW3N0YXJ0ICsgMTNdID0gdmFsdWVbMV07XG4gICAgICAgIGFycltzdGFydCArIDE1XSA9IHZhbHVlWzBdOyB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0ge051bWJlcn0gc3ByaXRlSW5kZXgg0JjQvdC00LXQutGBINGB0L/RgNCw0LnRgtCwXG4gICAgICogQHBhcmFtIHt2ZWMyfSAgIHZhbHVlICAgICAgINCd0L7QstC+0LUg0LfQvdCw0YfQtdC90LjQtSDRgNCw0LfQvNC10YDQsFxuICAgICAqL1xuICAgIHNldFNpemUoc3ByaXRlSW5kZXgsIHZhbHVlKSB7XG4gICAgICAgIGNvbnN0IGFyciA9IHRoaXMuX2RhdGEuc2NhbGUuYXJyYXk7XG4gICAgICAgIGNvbnN0IHN0YXJ0ID0gc3ByaXRlSW5kZXggKiAxMjtcblxuICAgICAgICBhcnJbc3RhcnRdID0gdmFsdWVbMF07IGFycltzdGFydCArIDFdID0gdmFsdWVbMV07XG4gICAgICAgIGFycltzdGFydCArIDJdID0gdmFsdWVbMF07IGFycltzdGFydCArIDNdID0gdmFsdWVbMV07XG4gICAgICAgIGFycltzdGFydCArIDRdID0gdmFsdWVbMF07IGFycltzdGFydCArIDVdID0gdmFsdWVbMV07XG4gICAgICAgIGFycltzdGFydCArIDZdID0gdmFsdWVbMF07IGFycltzdGFydCArIDddID0gdmFsdWVbMV07XG4gICAgICAgIGFycltzdGFydCArIDhdID0gdmFsdWVbMF07IGFycltzdGFydCArIDldID0gdmFsdWVbMV07XG4gICAgICAgIGFycltzdGFydCArIDEwXSA9IHZhbHVlWzBdOyBhcnJbc3RhcnQgKyAxMV0gPSB2YWx1ZVsxXTtcblxuICAgICAgICB0aGlzLl9kYXRhLnNjYWxlLmRpcnR5ID0gdHJ1ZTtcblxuICAgICAgICByZXR1cm4gdGhpcztcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiDQo9GB0YLQsNC90LDQstC70LjQstCw0LXRgiDRgdC/0YDQsNC50YLRgyBj0LzQtdGJ0LXQvdC40LVcbiAgICAgKlxuICAgICAqIEBwYXJhbSB7TnVtYmVyfSBzcHJpdGVJbmRleCDQmNC90LTQtdC60YEg0YHQv9GA0LDQudGC0LBc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bHVlO1xuXG4gICAgICAgIHRoaXMuX2RhdGEuY29sb3JBbHBoYS5kaXJ0eSA9IHRydWU7XG5cbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICog0KPRgdGC0LDQvdCw0LLQu9C40LLQsNC10YIg0YHQv9GA0LDQudGC0YMg0L/QvtC30LjRhtC40Y5cbiAgICAgKlxuICAgICAqIEBwYXJhbSB7TnVtYmVyfSBzcHJpdGVJbmRleCDQmNC90LTQtdC60YEg0YHQv9GA0LDQudGC0LBcbiAgICAgKiBAcGFyYW0ge3ZlYzJ9ICAgdmFsdWUgICAgICAg0J3QvtCy0L7QtSDQt9C90LDRh9C10L3QuNC1INC/0L7Qt9C40YbQuNC4XG4gICAgICovXG4gICAgc2V0UG9zaXRpb24oc3ByaXRlSW5kZXgsIHZhbHVlKSB7XG4gICAgICAgIGNvbnN0IGFyciA9IHRoaXMuX2RhdGEucG9zaXRpb24uYXJyYXk7XG4gICAgICAgIGNvbnN0IHN0YXJ0ID0gc3ByaXRlSW5kZXggKiAxODtcblxuICAgICAgICBhcnJbc3RhcnRdID0gdmFsdWVbMF07IGFycltzdGFydCArIDFdID0gdmFsdWVbMV07XG4gICAgICAgIGFycltzdGFydCArIDNdID0gdmFsdWVbMF07IGFycltzdGFydCArIDRdID0gdmFsdWVbMV07XG4gICAgICAgIGFycltzdGFydCArIDZdID0gdmFsdWVbMF07IGFycltzdGFydCArIDddID0gdmFsdWVbMV07XG4gICAgICAgIGFycltzdGFydCArIDldID0gdmFsdWVbMF07IGFycltzdGFydCArIDEwXSA9IHZhbHVlWzFdO1xuICAgICAgICBhcnJbc3RhcnQgKyAxMl0gPSB2YWx1ZVswXTsgYXJyW3N0YXJ0ICsgMTNdID0gdmFsdWVbMV07XG4gICAgICAgIGFycltzdGFydCArIDE1XSA9IHZhbHVlWzBdOyBhcnJbc3RhcnQgKyAxNl0gPSB2YWx1ZVsxXTtcblxuICAgICAgICB0aGlzLl9kY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CwXG4gICAgICogQHBhcmFtIHt2ZWMyfSAgIHZhbHVlICAgICAgINCd0L7QstC+0LUg0LfQvdCw0YfQtdC90LjQtSDRgNCw0LfQvNC10YDQsFxuICAgICAqL1xuICAgIHNldFNpemUoc3ByaXRlSW5kZXgsIHZhbHVlKSB7XG4gICAgICAgIGNvbnN0IGFyciA9IHRoaXMuX2RhdGEuc2NhbGUuYXJyYXk7XG4gICAgICAgIGNvbnN0IHN0YXJ0ID0gc3ByaXRlSW5kZXggKiAxMjtcblxuICAgICAgICBhcnJbc3RhcnRdID0gdmFsdWVbMF07IGFycltzdGFydCArIDFdID0gdmFsdWVbMV07XG4gICAgICAgIGFycltzdGFydCArIDJdID0gdmFsdWVbMF07IGFycltzdGFydCArIDNdID0gdmFsdWVbMV07XG4gICAgICAgIGFycltzdGFydCArIDRdID0gdmFsdWVbMF07IGFycltzdGFydCArIDVdID0gdmFsdWVbMV07XG4gICAgICAgIGFycltzdGFydCArIDZdID0gdmFsdWVbMF07IGFycltzdGFydCArIDddID0gdmFsdWVbMV07XG4gICAgICAgIGFycltzdGFydCArIDhdID0gdmFsdWVbMF07IGFycltzdGFydCArIDldID0gdmFsdWVbMV07XG4gICAgICAgIGFycltzdGFydCArIDEwXSA9IHZhbHVlWzBdOyBhcnJbc3RhcnQgKyAxMV0gPSB2YWx1ZVsxXTtcblxuICAgICAgICB0aGlzLl9kYXRhLnNjYWxlLmRpcnR5ID0gdHJ1ZTtcblxuICAgICAgICByZXR1cm4gdGhpcztcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiDQo9GB0YLQsNC90LDQstC70LjQstCw0LXRgiDRgdC/0YDQsNC50YLRgyBj0LzQtdGJ0LXQvdC40LVcbiAgICAgKlxuICAgICAqIEBwYXJhbSB7TnVtYmVyfSBzcHJpdGVJbmRleCDQmNC90LTQtdC60YEg0YHQv9GA0LDQudGC0LBcbiAgICAgKiBAcGFyYW0ge3ZlYzJ9ICAgdmFsdWUgICAgICAg0J3QvtCy0L7Q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J0eSB7TnVtYmVyfSBvcGFjaXR5INCe0L/QsNGB0LjRgtC4INGB0L/RgNCw0LnRgtCwXG4gKiBAcHJvcGVydHkge0FycmF5fSB1diDQmtC+0L7RgNC00LjQvdCw0YLRiyDRgtC10LrRgdGC0YPRgNGLINGB0L/RgNCw0LnRgtCwXG4gKi9cbiJdfQ== |
@@ -13,8 +13,2 @@ 'use strict'; | ||
var _libConstants2 = _interopRequireDefault(_libConstants); | ||
require('./rendererPlugins/CommonPlugin'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
@@ -51,10 +45,2 @@ | ||
/** | ||
* Определяет порядок отрисовки объектов с выключенным фильтром глубины. | ||
* Работает примерно также как и z-index у dom элементов. | ||
* Также этот порядок учитывается при отрисовки прозрачных мешей. | ||
* @type {number} | ||
*/ | ||
this.renderOrder = 0; | ||
/** | ||
* Масштаб объекта | ||
@@ -100,3 +86,3 @@ * @type {vec3} | ||
*/ | ||
this.type = _libConstants2.default.OBJECT_3D; | ||
this.type = _libConstants.OBJECT_3D; | ||
} | ||
@@ -257,3 +243,3 @@ | ||
renderPlugins[_libConstants2.default.COMMON_RENDERER].addObject(this); | ||
renderPlugins[_libConstants.COMMON_RENDERER].addObject(this); | ||
@@ -273,2 +259,2 @@ this.children.forEach(function (child) { | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9PYmplY3QzRC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7OztBQUFBOztBQUNBOzs7O0FBQ0E7Ozs7Ozs7Ozs7O0lBTU0sUTtBQUNGLHNCQUFjO0FBQUE7Ozs7Ozs7QUFNVixTQUFLLFFBQUwsR0FBZ0IsRUFBaEI7Ozs7OztBQU1BLFNBQUssTUFBTCxHQUFjL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TQtdGCINC+0LHQvdC+0LLQu9C10L3QsCDQv9C10YDQtdC0INGA0LXQvdC00LXRgNC40L3Qs9C+0LxcbiAgICAgICAgICogQHR5cGUge2Jvb2xlYW59XG4gICAgICAgICAqL1xuICAgICAgICB0aGlzLndvcmxkTWF0cml4TmVlZHNVcGRhdGUgPSBmYWxzZTtcblxuICAgICAgICAvKipcbiAgICAgICAgICog0JjRgdC/0L7Qu9GM0LfRg9C10YLRgdGPINC00LvRjyDQvtCx0L7Qt9C90LDRh9C10L3QuNGPINGC0LjQv9CwINC+0LHRitC10LrRgtCwXG4gICAgICAgICAqIEB0eXBlIHtOdW1iZXJ9XG4gICAgICAgICAqL1xuICAgICAgICB0aGlzLnR5cGUgPSBsaWJDb25zdGFudHMuT0JKRUNUXzNEO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqINCU0L7QsdCw0LLQu9GP0LXRgiDQtNC+0YfQtdGA0L3QuNC5INC+0LHRitC10LrRglxuICAgICAqIEBwYXJhbSB7T2JqZWN0M0R9IG9iamVjdCDQlNC+0YfQtdGA0L3QuNC5INC+0LHRitC10LrRglxuICAgICAqL1xuICAgIGFkZChvYmplY3QpIHtcbiAgICAgICAgaWYgKG9iamVjdC5wYXJlbnQpIHtcbiAgICAgICAgICAgIG9iamVjdC5wYXJlbnQucmVtb3ZlKG9iamVjdCk7XG4gICAgICAgIH1cblxuICAgICAgICBvYmplY3QucGFyZW50ID0gdGhpcztcbiAgICAgICAgdGhpcy5jaGlsZHJlbi5wdXNoKG9iamVjdCk7XG5cbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICog0KPQsdC40YDQsNC10YIg0LTQvtGH0LXRgNC90LjQuSDQvtCx0YrQtdC60YJcbiAgICAgKiBAcGFyYW0ge09iamVjdDNEfSBvYmplY3Qg0JTQvtGH0LXRgNC90LjQuSDQvtCx0YrQtdC60YJcbiAgICAgKi9cbiAgICByZW1vdmUob2JqZWN0KSB7XG4gIC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VjdDNEO1xuIl19 |
{ | ||
"name": "2gl", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "WebGL library for 2GIS projects", | ||
@@ -11,2 +11,5 @@ "repository": { | ||
"license": "SEE LICENSE IN FILE", | ||
"bin": { | ||
"buildShaders": "buildShaders.js" | ||
}, | ||
"dependencies": { | ||
@@ -43,3 +46,3 @@ "gl-matrix": "2.3.1" | ||
"build": "npm run build:shaders && npm run build:dist", | ||
"build:shaders": "node buildShaders.js", | ||
"build:shaders": "node buildShaders.js src", | ||
"build:dist": "mkdir -p dist && npm run build:dist:bundle && npm run build:dist:uglify", | ||
@@ -46,0 +49,0 @@ "build:dist:bundle": "browserify src/index.js -s dgl -d -o dist/2gl.js", |
@@ -215,2 +215,2 @@ 'use strict'; | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9SYXljYXN0ZXIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFBQTs7QUFDQTs7OztBQUNBOzs7Ozs7Ozs7Ozs7Ozs7SUFNTSxTOzs7Ozs7OztBQU9GLHVCQUFZLE1BQVosRUFBb0IsU0FBcEIsRUFBK0IsSUFBL0IsRUFBcUMsR0FBckMsRUFBMEM7QUFBQTs7QUFDdEMsYUFBSyxTQUFMLEdBQWlCLE1BQWpCO0FBQ0EsYUFBSyxHQUFMLEdBQVcsa0JBQVEsTUFBUixFQUFnQixTQUFoQixDQUFYO0FBQ0EsYUFBSyxJQUFMLEdBQVksUUFBUSxDQUFwQjtBQUNBLGFBQUssR0FBTCxHQUFXLE9BQU8sUUFBbEI7Ozs7OztBQU1BLGFBQUssc0JBQUwsdUJBQ0ssdUJBQWEsSUFEbEIsRUFDeUIsZUFEekI7QUFHSDs7Ozs7Ozs7Ozs7OztzQ0FTYSxXLEVBQWEsTSxFQUFRO0FBQy9CLGdCQUFJLE9BQU8sSUFBUCxLQUF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Yge09iamVjdH0gSW50ZXJzZWN0XG4gKiBAcHJvcGVydHkge051bWJlcn0gZGlzdGFuY2Ug0KDQsNGB0YHRgtC+0Y/QvdC40LUg0L7RgiDQvdCw0YfQsNC70LAg0LvRg9GH0LAg0LTQviDRgtC+0YfQutC4INC/0LXRgNC10YHQtdGH0LXQvdC40Y9cbiAqIEBwcm9wZXJ0eSB7dmVjM30gcG9pbnQg0JrQvtC+0YDQtNC40L3QsNGC0Ysg0YLQvtGH0LrQuCDQv9C10YDQtdGB0LXRh9C10L3QuNGPXG4gKiBAcHJvcGVydHkge09iamVjdDNEfSBvYmplY3Qg0J7QsdGK0LXQutGCINGBINC60L7RgtC+0YDRi9C8INC/0LXRgNC10YHQtdC60YHRjyDQu9GD0YdcbiAqL1xuIl19 |
@@ -236,3 +236,5 @@ 'use strict'; | ||
this._plugins.forEach(function (plugin) { | ||
plugin.render(state); | ||
if (plugin.haveObjects()) { | ||
plugin.render(state); | ||
} | ||
}); | ||
@@ -261,3 +263,3 @@ | ||
Renderer.plugins.sort(function (a, b) { | ||
return b.order < a.order; | ||
return a.order - b.order; | ||
}); | ||
@@ -301,2 +303,2 @@ } | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9SZW5kZXJlci5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0lBY00sUTtBQUNGLHNCQUFZLE9BQVosRUFBcUI7QUFBQTs7QUFBQTs7QUFDakIsa0JBQVUsV0FBVyxFQUFyQjs7QUFFQSxZQUFJLFFBQVEsTUFBWixFQUFvQjtBQUNoQixpQkFBSyxjQUFMLEdBQXNCLE9BQU8sUUFBUSxNQUFmLEtBQTBCLFFBQTFCLEdBQ2xCLFNBQVMsY0FBVCxDQUF3QixRQUFRLE1BQWhDLENBRGtCLEdBQ3dCLFFBQVEsTUFEdEQ7O0F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SBoZWlnaHQg0JLRi9GB0L7RgtCwINCyINC/0LjQutGB0LXQu9GP0YVcbiAgICAgKi9cbiAgICBzZXRTaXplKHdpZHRoLCBoZWlnaHQpIHtcbiAgICAgICAgdGhpcy5fc2l6ZSA9IFtcbiAgICAgICAgICAgIHdpZHRoICogdGhpcy5fcGl4ZWxSYXRpbyxcbiAgICAgICAgICAgIGhlaWdodCAqIHRoaXMuX3BpeGVsUmF0aW9cbiAgICAgICAgXTtcblxuICAgICAgICBpZiAodGhpcy5fY2FudmFzRWxlbWVudCkge1xuICAgICAgICAgICAgdGhpcy5fY2FudmFzRWxlbWVudC53aWR0aCA9IHRoaXMuX3NpemVbMF07XG4gICAgICAgICAgICB0aGlzLl9jYW52YXNFbGVtZW50LmhlaWdodCA9IHRoaXMuX3NpemVbMV07XG4gICAgICAgICAgICB0aGlzLl9jYW52YXNFbGVtZW50LnN0eWxlLndpZHRoID0gd2lkdGggKyAncHgnO1xuICAgICAgICAgICAgdGhpcy5fY2FudmFzRWxlbWVudC5zdHlsZS5oZWlnaHQgPSBoZWlnaHQgKyAncHgnO1xuICAgICAgICB9XG5cbiAgICAgICAgdGhpcy5zZXRWaWV3cG9ydCgpO1xuXG4gICAgICAgIHJldHVybiB0aGlzO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqINCj0YHRgtCw0L3QsNCy0LvQuNCy0LDQtdGCIHZpZXdwb3J0INC00LvRjyBXZWJHTFxuICAgICAqINCV0YHQu9C4INGA0LDQt9C80LXRgNGLINC90LUg0YPQutCw0LfQsNC90YssINGC0L4g0LLRi9GB0YLQsNCy0LvRj9C10YIg0YDQsNC30LzQtdGA0Ysg0YPQutCw0LfQsNC90L3Ri9C1INCyINGE0YPQvdC60YbQuNC4IHtAbGluayBSZW5kZXJlciNzZXRTaXplfVxuICAgICAqIEBwYXJhbSB7TnVtYmVyfSBbd2lkdGhdINCo0LjRgNC40L3QsCDQsiDQv9C40LrRgdC10LvRj9GFXG4gICAgICogQHBhcmFtIHt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gICAqL1xuICAgIHN0YXRpYyByZW1vdmVQbHVnaW4oUGx1Z2luKSB7XG4gICAgICAgIFJlbmRlcmVyLnBsdWdpbnMuc29tZSgoZWwsIGkpID0+IHtcbiAgICAgICAgICAgIGlmIChlbC5QbHVnaW4gPT09IFBsdWdpbikge1xuICAgICAgICAgICAgICAgIFJlbmRlcmVyLnBsdWdpbnMuc3BsaWNlKGksIDEpO1xuICAgICAgICAgICAgICAgIHJldHVybiB0cnVlO1xuICAgICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICB9XG59XG5cblJlbmRlcmVyLnBsdWdpbnMgPSBbXTtcblxuZXhwb3J0IGRlZmF1bHQgUmVuZGVyZXI7XG5cbi8qKlxuICog0KHQvtGB0YLQvtGP0L3QuNC1INGA0LXQvdC00LXRgNCwLiDQn9C10YDQtdC00LDQtdGC0YHRjyDQvtCx0YrQtdC60YLQsNC8INC00LvRjyDQvtGC0YDQuNGB0L7QstC60LguXG4gKlxuICogQHR5cGVkZWYge09iamVjdH0gU3RhdGVcbiAqIEBwcm9wZXJ0eSB7V2ViR0xSZW5kZXJpbmdDb250ZXh0fSBnbFxuICogQHByb3BlcnR5IHtTY2VuZX0gc2NlbmVcbiAqIEBwcm9wZXJ0eSB7Q2FtZXJhfSBjYW1lcmFcbiAqIEBwcm9wZXJ0eSB7UmVuZGVyZXJ9IHJlbmRlcmVyXG4gKi9cbiJdfQ== |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
value: true | ||
}); | ||
@@ -19,40 +19,45 @@ | ||
var RendererPlugin = function () { | ||
function RendererPlugin() { | ||
_classCallCheck(this, RendererPlugin); | ||
function RendererPlugin() { | ||
_classCallCheck(this, RendererPlugin); | ||
this._objects = []; | ||
this._objects = []; | ||
/** | ||
* Используется для обозначения типа плагина | ||
* @type {Number} | ||
*/ | ||
this.type = 0; | ||
} | ||
/** | ||
* Используется для обозначения типа плагина | ||
* @type {Number} | ||
* Рисует сцену с помощью этого плагина | ||
* @param {State} state | ||
*/ | ||
this.type = 0; | ||
} | ||
/** | ||
* Рисует сцену с помощью этого плагина | ||
* @param {State} state | ||
*/ | ||
_createClass(RendererPlugin, [{ | ||
key: "render", | ||
value: function render() { | ||
this._objects = []; | ||
} | ||
_createClass(RendererPlugin, [{ | ||
key: "render", | ||
value: function render() { | ||
this._objects = []; | ||
} | ||
/** | ||
* Добавляет объект к плагину на этапе рендеринга | ||
* @param {Object3D} object | ||
*/ | ||
/** | ||
* Добавляет объект к плагину на этапе рендеринга | ||
* @param {Object3D} object | ||
*/ | ||
}, { | ||
key: "addObject", | ||
value: function addObject(object) { | ||
this._objects.push(object); | ||
return this; | ||
} | ||
}, { | ||
key: "haveObjects", | ||
value: function haveObjects() { | ||
return this._objects.length > 0; | ||
} | ||
}]); | ||
}, { | ||
key: "addObject", | ||
value: function addObject(object) { | ||
this._objects.push(object); | ||
return this; | ||
} | ||
}]); | ||
return RendererPlugin; | ||
return RendererPlugin; | ||
}(); | ||
@@ -62,2 +67,2 @@ | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9SZW5kZXJlclBsdWdpbi5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7OztJQU1NLGM7QUFDRiw0QkFBYztBQUFBOztBQUNWLFNBQUssUUFBTCxHQUFnQixFQUFoQjs7Ozs7O0FBTUEsU0FBSyxJQUFMLEdBQVksQ0FBWjtBQUNIOzs7Ozs7Ozs7OzZCQU1RO0FBQ0wsV0FBSyxRQUFMLEdBQWdCLEVBQWhCO0FBQ0g7Ozs7Ozs7Ozs4QkFNUyxNLEVBQVE7QUFDZCxXQUFLLFFBQUwsQ0FBYyxJQUFkLENBQW1CLE1BQW5CO0FBQ0EsYUFBTyxJQUFQO0FBQ0g7Ozs7OztrQkFHVSxjIiwiZmlsZSI6IlJlbmRlcmVyUGx1Z2luLmpzIiwic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cbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiDQoNC40YHRg9C10YIg0YHRhtC10L3RgyDRgSDQv9C+0LzQvtGJ0YzRjiDRjdGC0L7Qs9C+INC/0LvQsNCz0LjQvdCwXG4gICAgICogQHBhcmFtIHtTdGF0ZX0gc3RhdGVcbiAgICAgKi9cbiAgICByZW5kZXIoKSB7XG4gICAgICAgIHRoaXMuX29iamVjdHMgPSBbXTtcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiDQlNC+0LHQsNCy0LvRj9C10YIg0L7QsdGK0LXQutGCINC6INC/0LvQsNCz0LjQvdGDINC90LAg0Y3RgtCw0L/QtSDRgNC10L3QtNC10YDQuNC90LPQsFxuICAgICAqIEBwYXJhbSB7T2JqZWN0M0R9IG9iamVjdFxuICAgICAqL1xuICAgIGFkZE9iamVjdChvYmplY3QpIHtcbiAgICAgICAgdGhpcy5fb2JqZWN0cy5wdXNoKG9iamVjdCk7XG4gICAgICAgIHJldHVybiB0aGlzO1xuICAgIH1cblxuICAgIGhhdmVPYmplY3RzKCkge1xuICAgICAgICByZXR1cm4gdGhpcy5fb2JqZWN0cy5sZW5ndGggPiAwO1xuICAgIH1cbn1cblxuZXhwb3J0IGRlZmF1bHQgUmVuZGVyZXJQbHVnaW47XG4iXX0= |
@@ -96,2 +96,2 @@ 'use strict'; | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9yZW5kZXJlclBsdWdpbnMvQ29tbW9uUGx1Z2luLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7O0FBQUE7Ozs7QUFDQTs7OztBQUNBOzs7Ozs7Ozs7Ozs7Ozs7Ozs7SUFPTSxZOzs7QUFDRiw0QkFBYztBQUFBOzs7Ozs7O0FBQUE7O0FBT1YsY0FBSyxJQUFMLEdBQVksdUJBQWEsZUFBekI7QUFQVTtBQVFiOzs7Ozs7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TCk7XG5cbiAgICAgICAgZ2wuZnJvbnRGYWNlKGdsLkNDVyk7XG4gICAgICAgIGdsLmN1bGxGYWNlKGdsLkJBQ0spO1xuICAgICAgICBnbC5lbmFibGUoZ2wuQ1VMTF9GQUNFKTtcbiAgICAgICAgZ2wuZGlzYWJsZShnbC5CTEVORCk7XG5cbiAgICAgICAgaWYgKHN0YXRlLnJlbmRlcmVyLnNvcnRPYmplY3RzKSB7XG4gICAgICAgICAgICB0aGlzLl9vYmplY3RzLnNvcnQodGhpcy5fcmVuZGVyT3JkZXJTb3J0KTtcbiAgICAgICAgfVxuXG4gICAgICAgIHRoaXMuX29iamVjdHMuZm9yRWFjaChvYmplY3QgPT4gb2JqZWN0LnJlbmRlcihzdGF0ZSkpO1xuICAgICAgICB0aGlzLl9vYmplY3RzID0gW107XG5cbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxuXG4gICAgX3JlbmRlck9yZGVyU29ydChhLCBiKSB7XG4gICAgICAgIHJldHVybiBhLnJlbmRlck9yZGVyIC0gYi5yZW5kZXJPcmRlcjtcbiAgICB9XG59XG5cblJlbmRlcmVyLmFkZFBsdWdpbigwLCBDb21tb25QbHVnaW4pO1xuXG5leHBvcnQgZGVmYXVsdCBDb21tb25QbHVnaW47XG4iXX0= |
@@ -9,9 +9,9 @@ 'use strict'; | ||
var _multiSpriteFrag = require('../shaders/multiSprite.frag.js'); | ||
var _multiSpriteFragGlsl = require('../shaders/multiSprite.frag.glsl.js'); | ||
var _multiSpriteFrag2 = _interopRequireDefault(_multiSpriteFrag); | ||
var _multiSpriteFragGlsl2 = _interopRequireDefault(_multiSpriteFragGlsl); | ||
var _multiSpriteVert = require('../shaders/multiSprite.vert.js'); | ||
var _multiSpriteVertGlsl = require('../shaders/multiSprite.vert.glsl.js'); | ||
var _multiSpriteVert2 = _interopRequireDefault(_multiSpriteVert); | ||
var _multiSpriteVertGlsl2 = _interopRequireDefault(_multiSpriteVertGlsl); | ||
@@ -30,2 +30,6 @@ var _ShaderProgram = require('../ShaderProgram'); | ||
var _Shader = require('../Shader'); | ||
var _Shader2 = _interopRequireDefault(_Shader); | ||
var _libConstants = require('../libConstants'); | ||
@@ -58,4 +62,4 @@ | ||
_this._shaderProgram = new _ShaderProgram2.default({ | ||
vertex: _multiSpriteVert2.default, | ||
fragment: _multiSpriteFrag2.default, | ||
vertex: new _Shader2.default('vertex', _multiSpriteVertGlsl2.default), | ||
fragment: new _Shader2.default('fragment', _multiSpriteFragGlsl2.default), | ||
uniforms: [{ name: 'uPCamera', type: 'mat4' }, { name: 'uHalfSize', type: '2f' }, { name: 'uTexture', type: '1i' }, { name: 'uSmoothing', type: '1f' }], | ||
@@ -117,2 +121,2 @@ attributes: [{ name: 'disposition' }, { name: 'texture' }, { name: 'position' }, { name: 'colorAlpha' }, { name: 'scale' }, { name: 'offset' }] | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9yZW5kZXJlclBsdWdpbnMvTXVsdGlTcHJpdGVQbHVnaW4uanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFBQTs7OztBQUNBOzs7O0FBQ0E7Ozs7QUFDQTs7OztBQUNBOzs7O0FBQ0E7Ozs7Ozs7Ozs7Ozs7Ozs7SUFLTSxpQjs7O0FBQ0YsK0JBQVksUUFBWixFQUFzQjtBQUFBOztBQUFBOztBQUdsQixjQUFLLFNBQUwsR0FBaUIsUUFBakI7O0FBRUEsY0FBSyxjQUFMLEdBQXNCLDRCQUFrQjtBQUNwQyw2Q0FEb0M7QUFFcEMsK0NBRm9DO0FBR3BDLHNCQUFVLENBQ04sRUFBQyxNQUFNLFVBQVAsRUFBbUIsTUFBTSxNQUF6QixFQURNLEVBRU4sRUFBQyxNQUFNLFdBQVAsRUFBb0IsTUFBTSxJQUExQixFQUZNLEVBR04sRUFBQyxNQUFNLFVBQVAsRUFBbUIsTUFBT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xhc3MgTXVsdGlTcHJpdGVQbHVnaW4gZXh0ZW5kcyBSZW5kZXJlclBsdWdpbiB7XG4gICAgY29uc3RydWN0b3IocmVuZGVyZXIpIHtcbiAgICAgICAgc3VwZXIoKTtcblxuICAgICAgICB0aGlzLl9yZW5kZXJlciA9IHJlbmRlcmVyO1xuXG4gICAgICAgIHRoaXMuX3NoYWRlclByb2dyYW0gPSBuZXcgU2hhZGVyUHJvZ3JhbSh7XG4gICAgICAgICAgICB2ZXJ0ZXg6IHZlcnRleFNoYWRlcixcbiAgICAgICAgICAgIGZyYWdtZW50OiBmcmFnbWVudFNoYWRlcixcbiAgICAgICAgICAgIHVuaWZvcm1zOiBbXG4gICAgICAgICAgICAgICAge25hbWU6ICd1UENhbWVyYScsIHR5cGU6ICdtYXQ0J30sXG4gICAgICAgICAgICAgICAge25hbWU6ICd1SGFsZlNpemUnLCB0eXBlOiAnMmYnfSxcbiAgICAgICAgICAgICAgICB7bmFtZTogJ3VUZXh0dXJlJywgdHlwZTogJzFpJ30sXG4gICAgICAgICAgICAgICAge25hbWU6ICd1U21vb3RoaW5nJywgdHlwZTogJzFmJ31cbiAgICAgICAgICAgIF0sXG4gICAgICAgICAgICBhdHRyaWJ1dGVzOiBbXG4gICAgICAgICAgICAgICAge25hbWU6ICdkaXNwb3NpdGlvbid9LFxuICAgICAgICAgICAgICAgIHtuYW1lOiAndGV4dHVyZSd9LFxuICAgICAgICAgICAgICAgIHtuYW1lOiAncG9zaXRpb24nfSxcbiAgICAgICAgICAgICAgICB7bmFtZTogJ2NvbG9yQWxwaGEnfSxcbiAgICAgICAgICAgICAgICB7bmFtZTogJ3NjYWxlJ30sXG4gICAgICAgICAgICAgICAge25hbWU6ICdvZmZzZXQnfVxuICAgICAgICAgICAgXVxuICAgICAgICB9KTtcblxuICAgICAgICB0aGlzLnR5cGUgPSBsaWJDb25zdGFudHMuTVVMVElfU1BSSVRFX1JFTkRFUkVSO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIN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AgICB0aGlzLl9yZW5kZXJlciA9IHJlbmRlcmVyO1xuXG4gICAgICAgIHRoaXMuX3NoYWRlclByb2dyYW0gPSBuZXcgU2hhZGVyUHJvZ3JhbSh7XG4gICAgICAgICAgICB2ZXJ0ZXg6IG5ldyBTaGFkZXIoJ3ZlcnRleCcsIHZlcnRleFNoYWRlciksXG4gICAgICAgICAgICBmcmFnbWVudDogbmV3IFNoYWRlcignZnJhZ21lbnQnLCBmcmFnbWVudFNoYWRlciksXG4gICAgICAgICAgICB1bmlmb3JtczogW1xuICAgICAgICAgICAgICAgIHtuYW1lOiAndVBDYW1lcmEnLCB0eXBlOiAnbWF0NCd9LFxuICAgICAgICAgICAgICAgIHtuYW1lOiAndUhhbGZTaXplJywgdHlwZTogJzJmJ30sXG4gICAgICAgICAgICAgICAge25hbWU6ICd1VGV4dHVyZScsIHR5cGU6ICcxaSd9LFxuICAgICAgICAgICAgICAgIHtuYW1lOiAndVNtb290aGluZycsIHR5cGU6ICcxZid9XG4gICAgICAgICAgICBdLFxuICAgICAgICAgICAgYXR0cmlidXRlczogW1xuICAgICAgICAgICAgICAgIHtuYW1lOiAnZGlzcG9zaXRpb24nfSxcbiAgICAgICAgICAgICAgICB7bmFtZTogJ3RleHR1cmUnfSxcbiAgICAgICAgICAgICAgICB7bmFtZTogJ3Bvc2l0aW9uJ30sXG4gICAgICAgICAgICAgICAge25hbWU6ICdjb2xvckFscGhhJ30sXG4gICAgICAgICAgICAgICAge25hbWU6ICdzY2FsZSd9LFxuICAgICAgICAgICAgICAgIHtuYW1lOiAnb2Zmc2V0J31cbiAgICAgICAgICAgIF1cbiAgICAgICAgfSk7XG5cbiAgICAgICAgdGhpcy50eXBlID0gbGliQ29uc3RhbnRzLk1VTFRJX1NQUklURV9SRU5ERVJFUjtcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiDQoNC40YHRg9C10YIg0YHRhtC10L3RgyDRgSDQv9C+0LzQvtGJ0YzRjiDRjdGC0L7Qs9C+INC/0Lv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xuICAgIH1cbn1cblxuUmVuZGVyZXIuYWRkUGx1Z2luKDMwLCBNdWx0aVNwcml0ZVBsdWdpbik7XG5cbmV4cG9ydCBkZWZhdWx0IE11bHRpU3ByaXRlUGx1Z2luO1xuIl19 |
@@ -9,9 +9,9 @@ 'use strict'; | ||
var _spriteFrag = require('../shaders/sprite.frag.js'); | ||
var _spriteFragGlsl = require('../shaders/sprite.frag.glsl.js'); | ||
var _spriteFrag2 = _interopRequireDefault(_spriteFrag); | ||
var _spriteFragGlsl2 = _interopRequireDefault(_spriteFragGlsl); | ||
var _spriteVert = require('../shaders/sprite.vert.js'); | ||
var _spriteVertGlsl = require('../shaders/sprite.vert.glsl.js'); | ||
var _spriteVert2 = _interopRequireDefault(_spriteVert); | ||
var _spriteVertGlsl2 = _interopRequireDefault(_spriteVertGlsl); | ||
@@ -34,2 +34,6 @@ var _ShaderProgram = require('../ShaderProgram'); | ||
var _Shader = require('../Shader'); | ||
var _Shader2 = _interopRequireDefault(_Shader); | ||
var _Buffer = require('../Buffer'); | ||
@@ -69,4 +73,4 @@ | ||
_this._shaderProgram = new _ShaderProgram2.default({ | ||
vertex: _spriteVert2.default, | ||
fragment: _spriteFrag2.default, | ||
vertex: new _Shader2.default('vertex', _spriteVertGlsl2.default), | ||
fragment: new _Shader2.default('fragment', _spriteFragGlsl2.default), | ||
uniforms: [{ name: 'uPCamera', type: 'mat4' }, { name: 'uPosition', type: '3f' }, { name: 'uColorAlpha', type: '1f' }, { name: 'uScale', type: '2f' }, { name: 'uTexture', type: '1i' }, { name: 'uHalfSize', type: '2f' }, { name: 'uOffset', type: '2f' }, { name: 'uSmoothing', type: '1f' }], | ||
@@ -130,2 +134,2 @@ attributes: [{ name: 'position' }, { name: 'texture' }, { name: 'index', index: true }] | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9yZW5kZXJlclBsdWdpbnMvU3ByaXRlUGx1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ZXIoJ3RleHR1cmUnLCBuZXcgQnVmZmVyKG5ldyBGbG9hdDMyQXJyYXkoW1xuICAgICAgICAgICAgICAgIDAsIDAsXG4gICAgICAgICAgICAgICAgMSwgMCxcbiAgICAgICAgICAgICAgICAxLCAxLFxuICAgICAgICAgICAgICAgIDAsIDFcbiAgICAgICAgICAgIF0pLCAyKSlcbiAgICAgICAgICAgIC5zZXRCdWZmZXIoJ2luZGV4JywgbmV3IEJ1ZmZlcihuZXcgVWludDE2QXJyYXkoW1xuICAgICAgICAgICAgICAgIDEsIDIsIDAsXG4gICAgICAgICAgICAgICAgMywgMCwgMlxuICAgICAgICAgICAgXSksIDEpKTtcblxuICAgICAgICB0aGlzLl9nZW9tZXRyeS5nZXRCdWZmZXIoJ2luZGV4JykudHlwZSA9IEJ1ZmZlci5FbGVtZW50QXJyYXlCdWZmZXI7XG5cbiAgICAgICAgdGhpcy5fc2hhZGVyUHJvZ3JhbSA9IG5ldyBTaGFkZXJQcm9ncmFtKHtcbiAgICAgICAgICAgIHZlcnRleDogdmVydGV4U2hhZGVyLFxuICAgICAgICAgICAgZnJhZ21lbnQ6IGZyYWdtZW50U2hhZGVyLFxuICAgICAgICAgICAgdW5pZm9ybXM6IFtcbiAgICAgICAgICAgICAgICB7bmFtZTogJ3VQQ2FtZXJhJywgdHlwZTogJ21hdDQnfSxcbiAgICAgICAgICAgICAgICB7bmFtZTogJ3VQb3NpdGlvbicsIHR5cGU6ICczZid9LFxuICAgICAgICAgICAgICAgIHtuYW1lOiAndUNvbG9yQWxwaGEnLCB0eXBlOiAnMWYnfSxcbiAgICAgICAgICAgICAgICB7bmFtZTogJ3VTY2FsZScsIHR5cGU6ICcyZid9LFxuICAgICAgICAgICAgICAgIHtuYW1lOiAndVRleHR1cmUnLCB0eXBlOiAnMWknfSxcbiAgICAgICAgICAgICAgICB7bmFtZTogJ3VIYWxmU2l6ZScsIHR5cGU6ICcyZid9LFxuICAgICAgICAgICAgICAgIHtuYW1lOiAndU9mZnNldCcsIHR5cGU6ICcyZid9LFxuICAgICAgICAgICAgICAgIHtuYW1lOiAndVNtb290aGluZycsIHR5cGU6ICcxZid9XG4gICAgICAgICAgICBdLFxuICAgICAgICAgICAgYXR0cmlidXRlczogW1xuICAgICAgICAgICAgICAgIHtuYW1lOiAncG9zaXRpb24nfSxcbiAgICAgICAgICAgICAgICB7bmFtZTogJ3RleHR1cmUnfSxcbiAgICAgICAgICAgICAgICB7bmFtZTogJ2luZGV4JywgaW5kZXg6IHRydWV9XG4gICAgICAgICAgICBdXG4gICAgICAgIH0pO1xuXG4gICAgICAgIHRoaXMudHlwZSA9IGxpYkNvbnN0YW50cy5TUFJJVEVfUkVOREVSRVI7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICog0KDQuNGB0YPQtdGCINGB0YbQtdC90YMg0YEg0L/QvtC80L7RidGM0Y4g0Y3RgtC+0LPQviDQv9C70LDQs9C40L3QsFxuICAgICAqIEBwYXJhbSB7U3RhdGV9IHN0YXRlXG4gICAgICovXG4gICAgcmVuZGVyKHN0YXRlKSB7XG4gICAgICAgIGNvbnN0IHtnbCwgY2FtZXJhfSA9IHN0YXRlO1xuXG4gICAgICAgIHN0YXRlLnNoYWRlclByb2dyYW0gPSB0aGlzLl9zaGFkZXJQcm9ncmFtO1xuXG4gICAgICAgIGdsLmRpc2FibGUoZ2wuREVQVEhfVEVTVCk7XG5cbiAgICAgICAgZ2wuZW5hYmxlKGdsLkJMRU5EKTtcbiAgICAgICAgZ2wuYmxlbmRFcXVhdGlvbihnbC5GVU5DX0FERCk7XG4gICAgICAgIGdsLmJsZW5kRnVuYyhnbC5PTkUsIGdsLk9ORV9NSU5VU19TUkNfQUxQSEEpO1xuXG4gICAgICAgIHRoaXMuX3NoYWRlclByb2dyYW1cbiAgICAgICAgICAgIC5lbmFibGUoZ2wpXG4gICAgICAgICAgICAuYmluZChnbCwge1xuICAgICAgICAgICAgICAgIHVQQ2FtZXJhOiBuZXcgRmxvYXQzMkFycmF5KGNhbWV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SwgMCxcbiAgICAgICAgICAgICAgICAxLCAxLFxuICAgICAgICAgICAgICAgIDAsIDFcbiAgICAgICAgICAgIF0pLCAyKSlcbiAgICAgICAgICAgIC5zZXRCdWZmZXIoJ2luZGV4JywgbmV3IEJ1ZmZlcihuZXcgVWludDE2QXJyYXkoW1xuICAgICAgICAgICAgICAgIDEsIDIsIDAsXG4gICAgICAgICAgICAgICAgMywgMCwgMlxuICAgICAgICAgICAgXSksIDEpKTtcblxuICAgICAgICB0aGlzLl9nZW9tZXRyeS5nZXRCdWZmZXIoJ2luZGV4JykudHlwZSA9IEJ1ZmZlci5FbGVtZW50QXJyYXlCdWZmZXI7XG5cbiAgICAgICAgdGhpcy5fc2hhZGVyUHJvZ3JhbSA9IG5ldyBTaGFkZXJQcm9ncmFtKHtcbiAgICAgICAgICAgIHZlcnRleDogbmV3IFNoYWRlcigndmVydGV4JywgdmVydGV4U2hhZGVyKSxcbiAgICAgICAgICAgIGZyYWdtZW50OiBuZXcgU2hhZGVyKCdmcmFnbWVudCcsIGZyYWdtZW50U2hhZGVyKSxcbiAgICAgICAgICAgIHVuaWZvcm1zOiBbXG4gICAgICAgICAgICAgICAge25hbWU6ICd1UENhbWVyYScsIHR5cGU6ICdtYXQ0J30sXG4gICAgICAgICAgICAgICAge25hbWU6ICd1UG9zaXRpb24nLCB0eXBlOiAnM2YnfSxcbiAgICAgICAgICAgICAgICB7bmFtZTogJ3VDb2xvckFscGhhJywgdHlwZTogJzFmJ30sXG4gICAgICAgICAgICAgICAge25hbWU6ICd1U2NhbGUnLCB0eXBlOiAnMmYnfSxcbiAgICAgICAgICAgICAgICB7bmFtZTogJ3VUZXh0dXJlJywgdHlwZTogJzFpJ30sXG4gICAgICAgICAgICAgICAge25hbWU6ICd1SGFsZlNpemUnLCB0eXBlOiAnMmYnfSxcbiAgICAgICAgICAgICAgICB7bmFtZTogJ3VPZmZzZXQnLCB0eXBlOiAnMmYnfSxcbiAgICAgICAgICAgICAgICB7bmFtZTogJ3V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ICAgICB1VGV4dHVyZTogMFxuICAgICAgICAgICAgfSwge1xuICAgICAgICAgICAgICAgIHBvc2l0aW9uOiB0aGlzLl9nZW9tZXRyeS5nZXRCdWZmZXIoJ3Bvc2l0aW9uJyksXG4gICAgICAgICAgICAgICAgdGV4dHVyZTogdGhpcy5fZ2VvbWV0cnkuZ2V0QnVmZmVyKCd0ZXh0dXJlJyksXG4gICAgICAgICAgICAgICAgaW5kZXg6IHRoaXMuX2dlb21ldHJ5LmdldEJ1ZmZlcignaW5kZXgnKVxuICAgICAgICAgICAgfSk7XG5cbiAgICAgICAgZ2wuYWN0aXZlVGV4dHVyZShnbC5URVhUVVJFMCk7XG5cbiAgICAgICAgdGhpcy5fb2JqZWN0cy5mb3JFYWNoKG9iamVjdCA9PiBvYmplY3QucmVuZGVyKHN0YXRlKSk7XG4gICAgICAgIHRoaXMuX29iamVjdHMgPSBbXTtcblxuICAgICAgICB0aGlzLl9zaGFkZXJQcm9ncmFtLmRpc2FibGUoZ2wpO1xuXG4gICAgICAgIHJldHVybiB0aGlzO1xuICAgIH1cbn1cblxuUmVuZGVyZXIuYWRkUGx1Z2luKDIwLCBTcHJpdGVQbHVnaW4pO1xuXG5leHBvcnQgZGVmYXVsdCBTcHJpdGVQbHVnaW47XG4iXX0= |
@@ -106,2 +106,2 @@ 'use strict'; | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9yZW5kZXJlclBsdWdpbnMvVHJhbnNwYXJlbnRQbHVnaW4uanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFBQTs7OztBQUNBOzs7O0FBQ0E7Ozs7Ozs7Ozs7Ozs7Ozs7OztJQU9NLGlCOzs7QUFDRixpQ0FBYztBQUFBOztBQUFBOztBQUdWLGNBQUssSUFBTCxHQUFZLHVCQUFhLG9CQUF6QjtBQUhVO0FBSWI7Ozs7Ozs7Ozs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AgICAgdGhpcy5fb2JqZWN0cy5zb3J0KHNvcnRlcik7XG4gICAgfVxuXG4gICAgX3JldmVyc2VQYWludGVyU29ydFN0YWJsZShjYW1lcmEsIGEsIGIpIHtcbiAgICAgICAgaWYgKGEucmVuZGVyT3JkZXIgIT09IGIucmVuZGVyT3JkZXIpIHtcbiAgICAgICAgICAgIHJldHVybiBhLnJlbmRlck9yZGVyIC0gYi5yZW5kZXJPcmRlcjtcbiAgICAgICAgfVxuXG4gICAgICAgIGNvbnN0IGFaID0gY2FtZXJhLnByb2plY3QoYS5nZXRXb3JsZFBvc2l0aW9uKCkpWzJdO1xuICAgICAgICBjb25zdCBiWiA9IGNhbWVyYS5wcm9qZWN0KGIuZ2V0V29ybGRQb3NpdGlvbigpKVsyXTtcblxuICAgICAgICByZXR1cm4gYlogLSBhWjtcbiAgICB9XG59XG5cblJlbmRlcmVyLmFkZFBsdWdpbigxMCwgVHJhbnNwYXJlbnRQbHVnaW4pO1xuXG5leHBvcnQgZGVmYXVsdCBUcmFuc3BhcmVudFBsdWdpbjtcbiJdfQ== |
@@ -173,2 +173,2 @@ 'use strict'; | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9SZW5kZXJUYXJnZXQuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFBQTs7Ozs7Ozs7Ozs7Ozs7O0lBUU0sWTtBQUNGLDRCQUEwQjtBQUFBLFlBQWQsT0FBYyx5REFBSixFQUFJOztBQUFBOztBQUN0QixhQUFLLEtBQUwsR0FBYSxRQUFRLElBQXJCO0FBQ0g7Ozs7Ozs7Ozs7NkJBTUksRSxFQUFJO0FBQ0wsZ0JBQUksS0FBSyxZQUFULEVBQXVCO0FBQ25CLHFCQUFLLFVBQUwsQ0FBZ0IsRUFBaEI7QUFDQSxxQkFBSyxZQUFMLEdBQW9CLEtBQXBCO0FBQ0g7O0FBRU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lciBzdGF0dXM6ICcgKyBzdGF0dXMpO1xuICAgICAgICB9XG4gICAgfVxufVxuXG5leHBvcnQgZGVmYXVsdCBSZW5kZXJUYXJnZXQ7XG4iXX0= |
@@ -70,2 +70,2 @@ 'use strict'; | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9TY2VuZS5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7OztBQUFBOzs7Ozs7Ozs7Ozs7Ozs7Ozs7SUFPTSxLOzs7QUFDRixxQkFBYztBQUFBOztBQUFBOztBQUdWLGNBQUssT0FBTCxHQUFlLEVBQWY7QUFIVTtBQUliOzs7Ozs7Ozs7O2lDQU1RLEssRUFBTztBQUNaLGlCQUFLLE9BQUwsQ0FBYSxJQUFiLENBQWtCLEtBQWxCOztBQUVBLG1CQUFPLElBQVA7QUFDSDs7Ozs7Ozs7O29DQU1XO0FBQ1IsbUJBQU8sS0FBSyxPQUFaO0FBQ0g7Ozs7OztrQkFHVSxLIiwiZmlsZSI6IlNjZW5lLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IE9iamVjdDNEIGZyb20gJy4vT2JqZWN0M0QnO1xuXG4vKipcbiAqINCh0YbQtdC90LAg0LLQutC70Y7Rh9Cw0LXRgiDQsiDRgdC10LHRjyDQstGB0LUg0L7QsdGK0LXQutGC0Ysg0L3QtdC+0LHRhdC+0LTQuNC80YvQtSDQtNC70Y8g0YDQtdC90LTQtdGA0LjQvdCz0LBcbiAqXG4gKiBAZXh0ZW5kcyBPYmplY3QzRFxuICovXG5jbGFzcyBTY2VuZSBleHRlbmRzIE9iamVjdDNEIHtcbiAgICBjb25zdHJ1Y3RvcigpIHtcbiAgICAgICAgc3VwZXIoKTtcblxuICAgICAgICB0aGlzLl9saWdodHMgPSBbXTtcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiDQlNC+0LHQsNCy0LvRj9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cmV0dXJuIHRoaXM7XG4gICAgfVxuXG4gICAgYmluZChnbCwgYnVmZmVyKSB7XG4gICAgICAgIGJ1ZmZlci5iaW5kKGdsLCB0aGlzLmxvY2F0aW9uKTtcbiAgICAgICAgcmV0dXJuIHRoaXM7XG4gICAgfVxuXG4gICAgZGlzYWJsZShnbCkge1xuICAgICAgICBpZiAodGhpcy5pbmRleCAhPT0gdHJ1ZSkge1xuICAgICAgICAgICAgZ2wuZGlzYWJsZVZlcnRleEF0dHJpYkFycmF5KHRoaXMubG9jYXRpb24pO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiB0aGlzO1xuICAgIH1cbn1cblxubW9kdWxlLmV4cG9ydHMgPSBTaGFkZXJBdHRyaWJ1dGU7XG5cbi8qKlxuICog0J7Qv9C40YHQsNC90LjQtSDRiNC10LnQtNC10YDQvdC+0LPQviDQsNGC0YDQuNCx0YPRgtCwXG4gKlxuICogQHR5cGVkZWYge09iamVjdH0gQXR0cmlidXRlRGVmaW5pdGlvblxuICogQHByb3BlcnR5IHtTdHJpbmd9IG5hbWUg0J3QsNC30LLQsNC90LjQtSDQsNGC0YDQuNCx0YPRgtCwXG4gKiBAcHJvcGVydHkge0Jvb2xlYW59IFtpbmRleF0g0JXRgdC70Lgg0LDRgtGA0LjQsdGD0YIg0LjRgdC/0L7Qu9GM0LfRg9C10YLRgdGPINC00LvRjyDQv9C10YDQtdC00LDRh9C4INC40L3QtNC10LrRgdC+0LIsINGC0L4gdHJ1ZVxuICovXG4iXX0= |
@@ -21,7 +21,6 @@ 'use strict'; | ||
* @param {Object} options | ||
* @param {String} vertex Код вершинного шейдера | ||
* @param {String} fragment Код фрагментного шейдера | ||
* @param {Shader} vertex Вершинный шейдер | ||
* @param {Shader} fragment Фрагментный шейдер | ||
* @param {UniformDefinition[]} [options.uniforms=[]] Описание юниформ | ||
* @param {AttributeDefinition[]} [options.attributes=[]] Описание атрибутов | ||
* @param {Object[]} [options.definitions=[]] | ||
*/ | ||
@@ -37,4 +36,4 @@ | ||
this._vertexShaderCode = options.vertex || ''; | ||
this._fragmentShaderCode = options.fragment || ''; | ||
this._vertexShader = options.vertex; | ||
this._fragmentShader = options.fragment; | ||
@@ -53,4 +52,2 @@ this._uniforms = {}; | ||
this._definitions = options.definitions || []; | ||
this._status = ShaderProgram.NOT_READY; | ||
@@ -130,32 +127,12 @@ } | ||
value: function _prepare(gl) { | ||
this._prepareShaders(gl); | ||
this._prepareAttributes(gl); | ||
this._prepareUniforms(gl); | ||
} | ||
}, { | ||
key: '_prepareShaders', | ||
value: function _prepareShaders(gl) { | ||
var fragmentShader = gl.createShader(gl.FRAGMENT_SHADER); | ||
gl.shaderSource(fragmentShader, this._addDefinitions(this._fragmentShaderCode)); | ||
gl.compileShader(fragmentShader); | ||
this._webglProgram = gl.createProgram(); | ||
if (!gl.getShaderParameter(fragmentShader, gl.COMPILE_STATUS)) { | ||
console.log(gl.getShaderInfoLog(fragmentShader)); | ||
this._status = ShaderProgram.FAILED; | ||
return; | ||
if (this._vertexShader) { | ||
gl.attachShader(this._webglProgram, this._vertexShader.get(gl)); | ||
} | ||
var vertexShader = gl.createShader(gl.VERTEX_SHADER); | ||
gl.shaderSource(vertexShader, this._addDefinitions(this._vertexShaderCode)); | ||
gl.compileShader(vertexShader); | ||
if (!gl.getShaderParameter(vertexShader, gl.COMPILE_STATUS)) { | ||
console.log(gl.getShaderInfoLog(vertexShader)); | ||
this._status = ShaderProgram.FAILED; | ||
return; | ||
if (this._fragmentShader) { | ||
gl.attachShader(this._webglProgram, this._fragmentShader.get(gl)); | ||
} | ||
this._webglProgram = gl.createProgram(); | ||
gl.attachShader(this._webglProgram, vertexShader); | ||
gl.attachShader(this._webglProgram, fragmentShader); | ||
gl.linkProgram(this._webglProgram); | ||
@@ -170,28 +147,9 @@ | ||
this._status = ShaderProgram.READY; | ||
this._fragmentShaderCode = null; | ||
this._vertexShaderCode = null; | ||
} | ||
}, { | ||
key: '_addDefinitions', | ||
value: function _addDefinitions(shader) { | ||
return this._definitions.map(function (def) { | ||
if (def.value !== undefined) { | ||
return '#define ' + def.type + ' ' + def.value; | ||
} else { | ||
return '#define ' + def.type; | ||
} | ||
}).join('\n') + '\n' + shader; | ||
} | ||
}, { | ||
key: '_prepareAttributes', | ||
value: function _prepareAttributes(gl) { | ||
for (var name in this._attributes) { | ||
this._attributes[name].setLocation(gl, this._webglProgram); | ||
} | ||
} | ||
}, { | ||
key: '_prepareUniforms', | ||
value: function _prepareUniforms(gl) { | ||
for (var name in this._uniforms) { | ||
this._uniforms[name].setLocation(gl, this._webglProgram); | ||
for (var _name2 in this._uniforms) { | ||
this._uniforms[_name2].setLocation(gl, this._webglProgram); | ||
} | ||
@@ -209,2 +167,2 @@ } | ||
module.exports = ShaderProgram; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9TaGFkZXJQcm9ncmFtLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQTs7OztBQUNBOzs7Ozs7Ozs7Ozs7Ozs7Ozs7O0lBWU0sYTtBQUNGLDJCQUFZLE9BQVosRUFBcUI7QUFBQTs7QUFBQTs7QUFDakIsa0JBQVUsV0FBVyxFQUFyQjs7QUFFQSxhQUFLLGlCQUFMLEdBQXlCLFFBQVEsTUFBUixJQUFrQixFQUEzQztBQUNBLGFBQUssbUJBQUwsR0FBMkIsUUFBUSxRQUFSLElBQW9CLEVBQS9DOztBQUVBLGFBQUssU0FBTCxHQUFpQixFQUFqQjtBQUNBLGdCQUFRLFFBQVIsR0FBbUIsUUFBUSxRQUFSLElBQW9CLEVBQXZDO0FBQ0EsZ0JBQVEsUUFBUixDQUFpQixPQUFqQixDQUF5QixlQUFPO0FBQzVCLGtCQUFLLFNBQUwsQ0FBZSxJQUFJLElBQW5CLElBQTJCLDRCQUFrQixHQUFsQixDQUEzQjtBQUNILFNBRkQ7O0FBSUEsYUFBSyxXQUFMLEdBQW1CLEVBQW5CO0FB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U2hhZGVyLmdldChnbCkpO1xuICAgICAgICB9XG5cbiAgICAgICAgZ2wubGlua1Byb2dyYW0odGhpcy5fd2ViZ2xQcm9ncmFtKTtcblxuICAgICAgICBpZiAoIWdsLmdldFByb2dyYW1QYXJhbWV0ZXIodGhpcy5fd2ViZ2xQcm9ncmFtLCBnbC5MSU5LX1NUQVRVUykpIHtcbiAgICAgICAgICAgIGNvbnNvbGUubG9nKCdDb3VsZCBub3QgaW5pdGlhbGl6ZSBzaGFkZXJzJyk7XG4gICAgICAgICAgICB0aGlzLl9zdGF0dXMgPSBTaGFkZXJQcm9ncmFtLkZBSUxFRDtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuXG4gICAgICAgIHRoaXMuX3N0YXR1cyA9IFNoYWRlclByb2dyYW0uUkVBRFk7XG5cbiAgICAgICAgZm9yIChjb25zdCBuYW1lIGluIHRoaXMuX2F0dHJpYnV0ZXMpIHtcbiAgICAgICAgICAgIHRoaXMuX2F0dHJpYnV0ZXNbbmFtZV0uc2V0TG9jYXRpb24oZ2wsIHRoaXMuX3dlYmdsUHJvZ3JhbSk7XG4gICAgICAgIH1cblxuICAgICAgICBmb3IgKGNvbnN0IG5hbWUgaW4gdGhpcy5fdW5pZm9ybXMpIHtcbiAgICAgICAgICAgIHRoaXMuX3VuaWZvcm1zW25hbWVdLnNldExvY2F0aW9uKGdsLCB0aGlzLl93ZWJnbFByb2dyYW0pO1xuICAgICAgICB9XG4gICAgfVxufVxuXG5TaGFkZXJQcm9ncmFtLk5PVF9SRUFEWSA9IDE7XG5TaGFkZXJQcm9ncmFtLlJFQURZID0gMjtcblNoYWRlclByb2dyYW0uRkFJTEVEID0gMztcblxubW9kdWxlLmV4cG9ydHMgPSBTaGFkZXJQcm9ncmFtO1xuIl19 |
@@ -72,2 +72,2 @@ 'use strict'; | ||
*/ | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9TaGFkZXJVb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ZhbHVlWzBdLCB2YWx1ZVsxXSk7XG4gICAgICAgIH0gZWxzZSBpZiAodHlwZSA9PT0gJzNpJykge1xuICAgICAgICAgICAgZ2wudW5pZm9ybTNpKHRoaXMubG9jYXRpb24sIHZhbHVlWzBdLCB2YWx1ZVsxXSwgdmFsdWVbMl0pO1xuICAgICAgICB9IGVsc2UgaWYgKHR5cGUgPT09ICc0aScpIHtcbiAgICAgICAgICAgIGdsLnVuaWZvcm00aSh0aGlzLmxvY2F0aW9uLCB2YWx1ZVswXSwgdmFsdWVbMV0sIHZhbHVlWzJdLCB2YWx1ZVszXSk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBnbFsndW5pZm9ybScgKyB0eXBlXSh0aGlzLmxvY2F0aW9uLCB2YWx1ZSk7XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gdGhpcztcbiAgICB9XG59XG5cbm1vZHVsZS5leHBvcnRzID0gU2hhZGVyVW5pZm9ybTtcblxuLyoqXG4gKiDQntC/0LjRgdCw0L3QuNC1INGI0LXQudC00LXRgNC90L7QuSDRjtC90LjRhNC+0YDQvNGLXG4gKlxuICogQHR5cGVkZWYge09iamVjdH0gVW5pZm9ybURlZmluaXRpb25cbiAqIEBwcm9wZXJ0eSB7U3RyaW5nfSBuYW1lINCd0LDQt9Cy0LDQvdC40LUg0Y7QvdC40YTQvtGA0LzRi1xuICogQHByb3BlcnR5IHtTdHJpbmd9IHR5cGUg0KLQuNC/INGO0L3QuNGE0L7RgNC80YssINC80L7QttC10YIg0LHRi9GC0Yw6IG1hdFsyMzRdLCBbMTIzNF1bZmldLCBbMTIzNF1bZmlddlxuICovXG4iXX0= |
@@ -125,2 +125,2 @@ 'use strict'; | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9TcHJpdGUuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFBQTs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PINC+0YLQtNC10LvRjNC90YvQvCDRgNC10L3QtNC10YDQvtC8LlxuICAgICAqXG4gICAgICogQHBhcmFtIHtPYmplY3R9IHJlbmRlclBsdWdpbnNcbiAgICAgKi9cbiAgICB0eXBpZnlGb3JSZW5kZXIocmVuZGVyUGx1Z2lucykge1xuICAgICAgICBpZiAoIXRoaXMudmlzaWJsZSkgeyByZXR1cm4gdGhpczsgfVxuXG4gICAgICAgIHJlbmRlclBsdWdpbnNbbGliQ29uc3RhbnRzLlNQUklURV9SRU5ERVJFUl0uYWRkT2JqZWN0KHRoaXMpO1xuXG4gICAgICAgIHRoaXMuY2hpbGRyZW4uZm9yRWFjaChjaGlsZCA9PiBjaGlsZC50eXBpZnlGb3JSZW5kZXIocmVuZGVyUGx1Z2lucykpO1xuXG4gICAgICAgIHJldHVybiB0aGlzO1xuICAgIH1cbn1cblxuZXhwb3J0IGRlZmF1bHQgU3ByaXRlO1xuIl19 |
@@ -181,2 +181,2 @@ "use strict"; | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9UZXh0dXJlLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7O0lBR00sTzs7Ozs7O0FBS0YscUJBQVksR0FBWixFQUFpQjtBQUFBOztBQUNiLGFBQUssSUFBTCxHQUFZLE9BQU8sSUFBbkI7Ozs7OztBQU1BLGFBQUssU0FBTCxHQUFpQixRQUFRLFlBQXpCOzs7Ozs7QUFNQSxhQUFLLFNBQUwsR0FBaUIsUUFBUSx3QkFBekI7Ozs7OztBQU1BLGFBQUssS0FBTCxHQUFhLFFBQVEsbUJBQXJCOzs7Ozs7QUFNQSxhQUFLLEtBQUwsR0FBYSxRQUFRLG1CQUFyQjs7Ozs7Ozs7O0FBU0EsYUFBSyxlQUFMLEdBQXVCLElBQXZCO0FBQ0g7Ozs7Ozs7Ozs7Ozs7K0JBU00s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ZpbHRlcikgeyByZXR1cm4gZ2wuTElORUFSX01JUE1BUF9MSU5FQVI7IH1cbiAgICB9XG59XG5cblRleHR1cmUuQ2xhbXBUb0VkZ2VXcmFwcGluZyA9IDg7XG5cblRleHR1cmUuTmVhcmVzdEZpbHRlciA9IDE7XG5UZXh0dXJlLk5lYXJlc3RNaXBNYXBOZWFyZXN0RmlsdGVyID0gMjtcblRleHR1cmUuTmVhcmVzdE1pcE1hcExpbmVhckZpbHRlciA9IDM7XG5UZXh0dXJlLkxpbmVhckZpbHRlciA9IDQ7XG5UZXh0dXJlLkxpbmVhck1pcE1hcE5lYXJlc3RGaWx0ZXIgPSA1O1xuVGV4dHVyZS5MaW5lYXJNaXBNYXBMaW5lYXJGaWx0ZXIgPSA2O1xuXG5leHBvcnQgZGVmYXVsdCBUZXh0dXJlO1xuXG4vKipcbiAqIEB0eXBlZGVmIHtUZXh0dXJlLk5lYXJlc3RGaWx0ZXIgfCBUZXh0dXJlLk5lYXJlc3RNaXBNYXBOZWFyZXN0RmlsdGVyIHxcbiAqIFRleHR1cmUuTmVhcmVzdE1pcE1hcExpbmVhckZpbHRlciB8IFRleHR1cmUuTGluZWFyRmlsdGVyIHxcbiAqIFRleHR1cmUuTGluZWFyTWlwTWFwTmVhcmVzdEZpbHRlciB8IFRleHR1cmUuTGluZWFyTWlwTWFwTGluZWFyRmlsdGVyfSBUZXh0dXJlRmlsdGVyXG4gKi9cblxuLyoqXG4gKiBAdHlwZWRlZiB7VGV4dHVyZS5DbGFtcFRvRWRnZVdyYXBwaW5nfSBUZXh0dXJlQ2xhbXBcbiAqL1xuIl19 |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
753128
60
4699
4