This commit is contained in:
Richard Davey 2018-10-24 23:46:31 +01:00
parent 6b34ef0e4f
commit 8d12286b01
2 changed files with 219 additions and 197 deletions

View file

@ -97,9 +97,9 @@ return /******/ (function(modules) { // webpackBootstrap
/******/ ({
/***/ "../../../node_modules/eventemitter3/index.js":
/*!**************************************************************!*\
!*** D:/wamp/www/phaser/node_modules/eventemitter3/index.js ***!
\**************************************************************/
/*!*******************************************************************************!*\
!*** /Users/rich/Documents/GitHub/phaser/node_modules/eventemitter3/index.js ***!
\*******************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
@ -445,9 +445,9 @@ if (true) {
/***/ }),
/***/ "../../../src/data/DataManager.js":
/*!**************************************************!*\
!*** D:/wamp/www/phaser/src/data/DataManager.js ***!
\**************************************************/
/*!*******************************************************************!*\
!*** /Users/rich/Documents/GitHub/phaser/src/data/DataManager.js ***!
\*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
@ -1078,9 +1078,9 @@ module.exports = DataManager;
/***/ }),
/***/ "../../../src/gameobjects/GameObject.js":
/*!********************************************************!*\
!*** D:/wamp/www/phaser/src/gameobjects/GameObject.js ***!
\********************************************************/
/*!*************************************************************************!*\
!*** /Users/rich/Documents/GitHub/phaser/src/gameobjects/GameObject.js ***!
\*************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
@ -1682,9 +1682,9 @@ module.exports = GameObject;
/***/ }),
/***/ "../../../src/gameobjects/components/Alpha.js":
/*!**************************************************************!*\
!*** D:/wamp/www/phaser/src/gameobjects/components/Alpha.js ***!
\**************************************************************/
/*!*******************************************************************************!*\
!*** /Users/rich/Documents/GitHub/phaser/src/gameobjects/components/Alpha.js ***!
\*******************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
@ -1982,9 +1982,9 @@ module.exports = Alpha;
/***/ }),
/***/ "../../../src/gameobjects/components/BlendMode.js":
/*!******************************************************************!*\
!*** D:/wamp/www/phaser/src/gameobjects/components/BlendMode.js ***!
\******************************************************************/
/*!***********************************************************************************!*\
!*** /Users/rich/Documents/GitHub/phaser/src/gameobjects/components/BlendMode.js ***!
\***********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
@ -2107,9 +2107,9 @@ module.exports = BlendMode;
/***/ }),
/***/ "../../../src/gameobjects/components/Depth.js":
/*!**************************************************************!*\
!*** D:/wamp/www/phaser/src/gameobjects/components/Depth.js ***!
\**************************************************************/
/*!*******************************************************************************!*\
!*** /Users/rich/Documents/GitHub/phaser/src/gameobjects/components/Depth.js ***!
\*******************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
@ -2205,9 +2205,9 @@ module.exports = Depth;
/***/ }),
/***/ "../../../src/gameobjects/components/ScrollFactor.js":
/*!*********************************************************************!*\
!*** D:/wamp/www/phaser/src/gameobjects/components/ScrollFactor.js ***!
\*********************************************************************/
/*!**************************************************************************************!*\
!*** /Users/rich/Documents/GitHub/phaser/src/gameobjects/components/ScrollFactor.js ***!
\**************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
@ -2317,9 +2317,9 @@ module.exports = ScrollFactor;
/***/ }),
/***/ "../../../src/gameobjects/components/ToJSON.js":
/*!***************************************************************!*\
!*** D:/wamp/www/phaser/src/gameobjects/components/ToJSON.js ***!
\***************************************************************/
/*!********************************************************************************!*\
!*** /Users/rich/Documents/GitHub/phaser/src/gameobjects/components/ToJSON.js ***!
\********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
@ -2409,9 +2409,9 @@ module.exports = ToJSON;
/***/ }),
/***/ "../../../src/gameobjects/components/Transform.js":
/*!******************************************************************!*\
!*** D:/wamp/www/phaser/src/gameobjects/components/Transform.js ***!
\******************************************************************/
/*!***********************************************************************************!*\
!*** /Users/rich/Documents/GitHub/phaser/src/gameobjects/components/Transform.js ***!
\***********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
@ -2882,9 +2882,9 @@ module.exports = Transform;
/***/ }),
/***/ "../../../src/gameobjects/components/TransformMatrix.js":
/*!************************************************************************!*\
!*** D:/wamp/www/phaser/src/gameobjects/components/TransformMatrix.js ***!
\************************************************************************/
/*!*****************************************************************************************!*\
!*** /Users/rich/Documents/GitHub/phaser/src/gameobjects/components/TransformMatrix.js ***!
\*****************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
@ -3798,9 +3798,9 @@ module.exports = TransformMatrix;
/***/ }),
/***/ "../../../src/gameobjects/components/Visible.js":
/*!****************************************************************!*\
!*** D:/wamp/www/phaser/src/gameobjects/components/Visible.js ***!
\****************************************************************/
/*!*********************************************************************************!*\
!*** /Users/rich/Documents/GitHub/phaser/src/gameobjects/components/Visible.js ***!
\*********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
@ -3892,9 +3892,9 @@ module.exports = Visible;
/***/ }),
/***/ "../../../src/loader/File.js":
/*!*********************************************!*\
!*** D:/wamp/www/phaser/src/loader/File.js ***!
\*********************************************/
/*!**************************************************************!*\
!*** /Users/rich/Documents/GitHub/phaser/src/loader/File.js ***!
\**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
@ -4494,9 +4494,9 @@ module.exports = File;
/***/ }),
/***/ "../../../src/loader/FileTypesManager.js":
/*!*********************************************************!*\
!*** D:/wamp/www/phaser/src/loader/FileTypesManager.js ***!
\*********************************************************/
/*!**************************************************************************!*\
!*** /Users/rich/Documents/GitHub/phaser/src/loader/FileTypesManager.js ***!
\**************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
@ -4564,9 +4564,9 @@ module.exports = FileTypesManager;
/***/ }),
/***/ "../../../src/loader/GetURL.js":
/*!***********************************************!*\
!*** D:/wamp/www/phaser/src/loader/GetURL.js ***!
\***********************************************/
/*!****************************************************************!*\
!*** /Users/rich/Documents/GitHub/phaser/src/loader/GetURL.js ***!
\****************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
@ -4610,9 +4610,9 @@ module.exports = GetURL;
/***/ }),
/***/ "../../../src/loader/MergeXHRSettings.js":
/*!*********************************************************!*\
!*** D:/wamp/www/phaser/src/loader/MergeXHRSettings.js ***!
\*********************************************************/
/*!**************************************************************************!*\
!*** /Users/rich/Documents/GitHub/phaser/src/loader/MergeXHRSettings.js ***!
\**************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
@ -4663,9 +4663,9 @@ module.exports = MergeXHRSettings;
/***/ }),
/***/ "../../../src/loader/MultiFile.js":
/*!**************************************************!*\
!*** D:/wamp/www/phaser/src/loader/MultiFile.js ***!
\**************************************************/
/*!*******************************************************************!*\
!*** /Users/rich/Documents/GitHub/phaser/src/loader/MultiFile.js ***!
\*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
@ -4862,9 +4862,9 @@ module.exports = MultiFile;
/***/ }),
/***/ "../../../src/loader/XHRLoader.js":
/*!**************************************************!*\
!*** D:/wamp/www/phaser/src/loader/XHRLoader.js ***!
\**************************************************/
/*!*******************************************************************!*\
!*** /Users/rich/Documents/GitHub/phaser/src/loader/XHRLoader.js ***!
\*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
@ -4935,9 +4935,9 @@ module.exports = XHRLoader;
/***/ }),
/***/ "../../../src/loader/XHRSettings.js":
/*!****************************************************!*\
!*** D:/wamp/www/phaser/src/loader/XHRSettings.js ***!
\****************************************************/
/*!*********************************************************************!*\
!*** /Users/rich/Documents/GitHub/phaser/src/loader/XHRSettings.js ***!
\*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
@ -5018,9 +5018,9 @@ module.exports = XHRSettings;
/***/ }),
/***/ "../../../src/loader/const.js":
/*!**********************************************!*\
!*** D:/wamp/www/phaser/src/loader/const.js ***!
\**********************************************/
/*!***************************************************************!*\
!*** /Users/rich/Documents/GitHub/phaser/src/loader/const.js ***!
\***************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
@ -5175,9 +5175,9 @@ module.exports = FILE_CONST;
/***/ }),
/***/ "../../../src/loader/filetypes/ImageFile.js":
/*!************************************************************!*\
!*** D:/wamp/www/phaser/src/loader/filetypes/ImageFile.js ***!
\************************************************************/
/*!*****************************************************************************!*\
!*** /Users/rich/Documents/GitHub/phaser/src/loader/filetypes/ImageFile.js ***!
\*****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
@ -5476,9 +5476,9 @@ module.exports = ImageFile;
/***/ }),
/***/ "../../../src/loader/filetypes/JSONFile.js":
/*!***********************************************************!*\
!*** D:/wamp/www/phaser/src/loader/filetypes/JSONFile.js ***!
\***********************************************************/
/*!****************************************************************************!*\
!*** /Users/rich/Documents/GitHub/phaser/src/loader/filetypes/JSONFile.js ***!
\****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
@ -5721,9 +5721,9 @@ module.exports = JSONFile;
/***/ }),
/***/ "../../../src/loader/filetypes/TextFile.js":
/*!***********************************************************!*\
!*** D:/wamp/www/phaser/src/loader/filetypes/TextFile.js ***!
\***********************************************************/
/*!****************************************************************************!*\
!*** /Users/rich/Documents/GitHub/phaser/src/loader/filetypes/TextFile.js ***!
\****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
@ -5910,9 +5910,9 @@ module.exports = TextFile;
/***/ }),
/***/ "../../../src/math/Clamp.js":
/*!********************************************!*\
!*** D:/wamp/www/phaser/src/math/Clamp.js ***!
\********************************************/
/*!*************************************************************!*\
!*** /Users/rich/Documents/GitHub/phaser/src/math/Clamp.js ***!
\*************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
@ -5945,9 +5945,9 @@ module.exports = Clamp;
/***/ }),
/***/ "../../../src/math/Matrix4.js":
/*!**********************************************!*\
!*** D:/wamp/www/phaser/src/math/Matrix4.js ***!
\**********************************************/
/*!***************************************************************!*\
!*** /Users/rich/Documents/GitHub/phaser/src/math/Matrix4.js ***!
\***************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
@ -6575,6 +6575,30 @@ var Matrix4 = new Class({
return this;
},
/**
* Translate this Matrix using the given values.
*
* @method Phaser.Math.Matrix4#translateXYZ
* @since 3.16.0
*
* @param {number} x - The x component.
* @param {number} y - The y component.
* @param {number} z - The z component.
*
* @return {Phaser.Math.Matrix4} This Matrix4.
*/
translateXYZ: function (x, y, z)
{
var a = this.val;
a[12] = a[0] * x + a[4] * y + a[8] * z + a[12];
a[13] = a[1] * x + a[5] * y + a[9] * z + a[13];
a[14] = a[2] * x + a[6] * y + a[10] * z + a[14];
a[15] = a[3] * x + a[7] * y + a[11] * z + a[15];
return this;
},
/**
* Apply a scale transformation to this Matrix.
*
@ -6612,6 +6636,40 @@ var Matrix4 = new Class({
return this;
},
/**
* Apply a scale transformation to this Matrix.
*
* @method Phaser.Math.Matrix4#scaleXYZ
* @since 3.16.0
*
* @param {number} x - The x component.
* @param {number} y - The y component.
* @param {number} z - The z component.
*
* @return {Phaser.Math.Matrix4} This Matrix4.
*/
scaleXYZ: function (x, y, z)
{
var a = this.val;
a[0] = a[0] * x;
a[1] = a[1] * x;
a[2] = a[2] * x;
a[3] = a[3] * x;
a[4] = a[4] * y;
a[5] = a[5] * y;
a[6] = a[6] * y;
a[7] = a[7] * y;
a[8] = a[8] * z;
a[9] = a[9] * z;
a[10] = a[10] * z;
a[11] = a[11] * z;
return this;
},
/**
* Derive a rotation matrix around the given axis.
*
@ -7354,9 +7412,9 @@ module.exports = Matrix4;
/***/ }),
/***/ "../../../src/math/Vector2.js":
/*!**********************************************!*\
!*** D:/wamp/www/phaser/src/math/Vector2.js ***!
\**********************************************/
/*!***************************************************************!*\
!*** /Users/rich/Documents/GitHub/phaser/src/math/Vector2.js ***!
\***************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
@ -7943,9 +8001,9 @@ module.exports = Vector2;
/***/ }),
/***/ "../../../src/math/Wrap.js":
/*!*******************************************!*\
!*** D:/wamp/www/phaser/src/math/Wrap.js ***!
\*******************************************/
/*!************************************************************!*\
!*** /Users/rich/Documents/GitHub/phaser/src/math/Wrap.js ***!
\************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
@ -7980,9 +8038,9 @@ module.exports = Wrap;
/***/ }),
/***/ "../../../src/math/angle/Wrap.js":
/*!*************************************************!*\
!*** D:/wamp/www/phaser/src/math/angle/Wrap.js ***!
\*************************************************/
/*!******************************************************************!*\
!*** /Users/rich/Documents/GitHub/phaser/src/math/angle/Wrap.js ***!
\******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
@ -8017,9 +8075,9 @@ module.exports = Wrap;
/***/ }),
/***/ "../../../src/math/angle/WrapDegrees.js":
/*!********************************************************!*\
!*** D:/wamp/www/phaser/src/math/angle/WrapDegrees.js ***!
\********************************************************/
/*!*************************************************************************!*\
!*** /Users/rich/Documents/GitHub/phaser/src/math/angle/WrapDegrees.js ***!
\*************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
@ -8054,9 +8112,9 @@ module.exports = WrapDegrees;
/***/ }),
/***/ "../../../src/math/const.js":
/*!********************************************!*\
!*** D:/wamp/www/phaser/src/math/const.js ***!
\********************************************/
/*!*************************************************************!*\
!*** /Users/rich/Documents/GitHub/phaser/src/math/const.js ***!
\*************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
@ -8130,9 +8188,9 @@ module.exports = MATH_CONST;
/***/ }),
/***/ "../../../src/plugins/BasePlugin.js":
/*!****************************************************!*\
!*** D:/wamp/www/phaser/src/plugins/BasePlugin.js ***!
\****************************************************/
/*!*********************************************************************!*\
!*** /Users/rich/Documents/GitHub/phaser/src/plugins/BasePlugin.js ***!
\*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
@ -8316,9 +8374,9 @@ module.exports = BasePlugin;
/***/ }),
/***/ "../../../src/plugins/ScenePlugin.js":
/*!*****************************************************!*\
!*** D:/wamp/www/phaser/src/plugins/ScenePlugin.js ***!
\*****************************************************/
/*!**********************************************************************!*\
!*** /Users/rich/Documents/GitHub/phaser/src/plugins/ScenePlugin.js ***!
\**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
@ -8409,9 +8467,9 @@ module.exports = ScenePlugin;
/***/ }),
/***/ "../../../src/renderer/BlendModes.js":
/*!*****************************************************!*\
!*** D:/wamp/www/phaser/src/renderer/BlendModes.js ***!
\*****************************************************/
/*!**********************************************************************!*\
!*** /Users/rich/Documents/GitHub/phaser/src/renderer/BlendModes.js ***!
\**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
@ -8565,9 +8623,9 @@ module.exports = {
/***/ }),
/***/ "../../../src/utils/Class.js":
/*!*********************************************!*\
!*** D:/wamp/www/phaser/src/utils/Class.js ***!
\*********************************************/
/*!**************************************************************!*\
!*** /Users/rich/Documents/GitHub/phaser/src/utils/Class.js ***!
\**************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
@ -8808,9 +8866,9 @@ module.exports = Class;
/***/ }),
/***/ "../../../src/utils/NOOP.js":
/*!********************************************!*\
!*** D:/wamp/www/phaser/src/utils/NOOP.js ***!
\********************************************/
/*!*************************************************************!*\
!*** /Users/rich/Documents/GitHub/phaser/src/utils/NOOP.js ***!
\*************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
@ -8840,9 +8898,9 @@ module.exports = NOOP;
/***/ }),
/***/ "../../../src/utils/object/Extend.js":
/*!*****************************************************!*\
!*** D:/wamp/www/phaser/src/utils/object/Extend.js ***!
\*****************************************************/
/*!**********************************************************************!*\
!*** /Users/rich/Documents/GitHub/phaser/src/utils/object/Extend.js ***!
\**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
@ -8944,9 +9002,9 @@ module.exports = Extend;
/***/ }),
/***/ "../../../src/utils/object/GetFastValue.js":
/*!***********************************************************!*\
!*** D:/wamp/www/phaser/src/utils/object/GetFastValue.js ***!
\***********************************************************/
/*!****************************************************************************!*\
!*** /Users/rich/Documents/GitHub/phaser/src/utils/object/GetFastValue.js ***!
\****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
@ -8992,9 +9050,9 @@ module.exports = GetFastValue;
/***/ }),
/***/ "../../../src/utils/object/GetValue.js":
/*!*******************************************************!*\
!*** D:/wamp/www/phaser/src/utils/object/GetValue.js ***!
\*******************************************************/
/*!************************************************************************!*\
!*** /Users/rich/Documents/GitHub/phaser/src/utils/object/GetValue.js ***!
\************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
@ -9068,9 +9126,9 @@ module.exports = GetValue;
/***/ }),
/***/ "../../../src/utils/object/IsPlainObject.js":
/*!************************************************************!*\
!*** D:/wamp/www/phaser/src/utils/object/IsPlainObject.js ***!
\************************************************************/
/*!*****************************************************************************!*\
!*** /Users/rich/Documents/GitHub/phaser/src/utils/object/IsPlainObject.js ***!
\*****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
@ -10043,99 +10101,58 @@ module.exports = {
*/
var SpineGameObjectWebGLRenderer = function (renderer, src, interpolationPercentage, camera, parentMatrix)
{
var pipeline = renderer.currentPipeline;
renderer.flush();
renderer.currentProgram = null;
renderer.currentVertexBuffer = null;
var mvp = src.mvp;
var plugin = src.plugin;
var mvp = plugin.mvp;
var shader = plugin.shader;
var batcher = plugin.batcher;
var runtime = src.runtime;
var skeletonRenderer = plugin.skeletonRenderer;
// spriteMatrix.applyITRS(sprite.x, sprite.y, sprite.rotation, sprite.scaleX, sprite.scaleY);
mvp.ortho(0, renderer.width, 0, renderer.height, 0, 1);
src.mvp.identity();
// var originX = camera.width * camera.originX;
// var originY = camera.height * camera.originY;
// mvp.translateXYZ(((camera.x - originX) - camera.scrollX) + src.x, renderer.height - (((camera.y + originY) - camera.scrollY) + src.y), 0);
// mvp.rotateZ(-(camera.rotation + src.rotation));
// mvp.scaleXYZ(camera.zoom * src.scaleX, camera.zoom * src.scaleY, 1);
src.mvp.ortho(0, 0 + 800, 0, 0 + 600, 0, 1);
mvp.translateXYZ(src.x, renderer.height - src.y, 0);
mvp.rotateZ(-src.rotation);
mvp.scaleXYZ(src.scaleX, src.scaleY, 1);
src.mvp.translate({ x: src.x, y: 600 - src.y, z: 0 });
// spriteMatrix.e -= camera.scrollX * sprite.scrollFactorX;
// spriteMatrix.f -= camera.scrollY * sprite.scrollFactorY;
src.mvp.rotateX(src.rotation);
// 12,13 = tx/ty
// 0,5 = scale x/y
src.mvp.scale({ x: src.scaleX, y: src.scaleY, z: 1 });
// var localA = mvp.val[0];
// var localB = mvp.val[1];
// var localC = mvp.val[2];
// var localD = mvp.val[3];
// var localE = mvp.val[4];
// var localF = mvp.val[5];
// mvp.translate(-src.x, src.y, 0);
// mvp.ortho2d(-250, 0, 800, 600);
// var sourceA = camMatrix.matrix[0];
// var sourceB = camMatrix.matrix[1];
// var sourceC = camMatrix.matrix[2];
// var sourceD = camMatrix.matrix[3];
// var sourceE = camMatrix.matrix[4];
// var sourceF = camMatrix.matrix[5];
// var camMatrix = renderer._tempMatrix1;
// var spriteMatrix = renderer._tempMatrix2;
// var calcMatrix = renderer._tempMatrix3;
// spriteMatrix.applyITRS(src.x, src.y, src.rotation, src.scaleX, src.scaleY);
// mvp.values[0] = spriteMatrix[0];
// mvp.values[1] = spriteMatrix[1];
// mvp.values[2] = spriteMatrix[2];
// mvp.values[4] = spriteMatrix[3];
// mvp.values[5] = spriteMatrix[4];
// mvp.values[6] = spriteMatrix[5];
// mvp.values[8] = spriteMatrix[6];
// mvp.values[9] = spriteMatrix[7];
// mvp.values[10] = spriteMatrix[8];
// Const = Array Index = Identity
// M00 = 0 = 1
// M01 = 4 = 0
// M02 = 8 = 0
// M03 = 12 = 0
// M10 = 1 = 0
// M11 = 5 = 1
// M12 = 9 = 0
// M13 = 13 = 0
// M20 = 2 = 0
// M21 = 6 = 0
// M22 = 10 = 1
// M23 = 14 = 0
// M30 = 3 = 0
// M31 = 7 = 0
// M32 = 11 = 0
// M33 = 15 = 1
mvp.values[0] = src.mvp.val[0];
mvp.values[1] = src.mvp.val[1];
mvp.values[2] = src.mvp.val[2];
mvp.values[3] = src.mvp.val[3];
mvp.values[4] = src.mvp.val[4];
mvp.values[5] = src.mvp.val[5];
mvp.values[6] = src.mvp.val[6];
mvp.values[7] = src.mvp.val[7];
mvp.values[8] = src.mvp.val[8];
mvp.values[9] = src.mvp.val[9];
mvp.values[10] = src.mvp.val[10];
mvp.values[11] = src.mvp.val[11];
mvp.values[12] = src.mvp.val[12];
mvp.values[13] = src.mvp.val[13];
mvp.values[14] = src.mvp.val[14];
mvp.values[15] = src.mvp.val[15];
// Array Order - Index
// M00 = 0
// M10 = 1
// M20 = 2
// M30 = 3
// M01 = 4
// M11 = 5
// M21 = 6
// M31 = 7
// M02 = 8
// M12 = 9
// M22 = 10
// M32 = 11
// M03 = 12
// M13 = 13
// M23 = 14
// M33 = 15
// mvp.ortho(-250, -250 + 1600, 0, 0 + 1200, 0, 1);
// mvp.val[0] = (sourceA * localA) + (sourceB * localC);
// mvp.val[1] = (sourceA * localB) + (sourceB * localD);
// mvp.val[2] = (sourceC * localA) + (sourceD * localC);
// mvp.val[3] = (sourceC * localB) + (sourceD * localD);
// mvp.val[4] = (sourceE * localA) + (sourceF * localC) + localE;
// mvp.val[5] = (sourceE * localB) + (sourceF * localD) + localF;
src.skeleton.updateWorldTransform();
@ -10143,14 +10160,14 @@ var SpineGameObjectWebGLRenderer = function (renderer, src, interpolationPercent
shader.bind();
shader.setUniformi(runtime.webgl.Shader.SAMPLER, 0);
shader.setUniform4x4f(runtime.webgl.Shader.MVP_MATRIX, mvp.values);
shader.setUniform4x4f(runtime.webgl.Shader.MVP_MATRIX, mvp.val);
// Start the batch and tell the SkeletonRenderer to render the active skeleton.
batcher.begin(shader);
plugin.skeletonRenderer.vertexEffect = null;
skeletonRenderer.premultipliedAlpha = true;
skeletonRenderer.premultipliedAlpha = false;
skeletonRenderer.draw(batcher, src.skeleton);
@ -10169,6 +10186,11 @@ var SpineGameObjectWebGLRenderer = function (renderer, src, interpolationPercent
debugShader.unbind();
}
*/
renderer.currentPipeline = pipeline;
renderer.currentPipeline.bind();
renderer.currentPipeline.onBind();
renderer.setBlankTexture(true);
};
module.exports = SpineGameObjectWebGLRenderer;

File diff suppressed because one or more lines are too long