melonjs 10.5.1 → 10.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/melonjs.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * melonJS Game Engine - v10.5.1
2
+ * melonJS Game Engine - v10.5.2
3
3
  * http://www.melonjs.org
4
4
  * melonjs is licensed under the MIT License.
5
5
  * http://www.opensource.org/licenses/mit-license
@@ -29632,6 +29632,17 @@
29632
29632
  return this.currentTextureUnit;
29633
29633
  };
29634
29634
 
29635
+ /**
29636
+ * set/change the current projection matrix
29637
+ * @name setProjection
29638
+ * @memberof WebGLCompositor
29639
+ * @function
29640
+ * @param {Matrix3d} matrix
29641
+ */
29642
+ WebGLCompositor.prototype.setProjection = function setProjection (matrix) {
29643
+ this.activeShader.setUniform("uProjectionMatrix", matrix);
29644
+ };
29645
+
29635
29646
  /**
29636
29647
  * Select the shader to use for compositing
29637
29648
  * @name useShader
@@ -30108,6 +30119,18 @@
30108
30119
  this.currentCompositor.flush();
30109
30120
  };
30110
30121
 
30122
+ /**
30123
+ * set/change the current projection matrix (WebGL only)
30124
+ * @name setProjection
30125
+ * @memberof WebGLRenderer.prototype
30126
+ * @function
30127
+ * @param {Matrix3d} matrix
30128
+ */
30129
+ WebGLRenderer.prototype.setProjection = function setProjection (matrix) {
30130
+ Renderer.prototype.setProjection.call(this, matrix);
30131
+ this.currentCompositor.setProjection(matrix);
30132
+ };
30133
+
30111
30134
  /**
30112
30135
  * Clears the gl context with the given color.
30113
30136
  * @name clearColor
@@ -31899,10 +31922,10 @@
31899
31922
  * this can be overridden by the plugin
31900
31923
  * @public
31901
31924
  * @type {string}
31902
- * @default "10.5.1"
31925
+ * @default "10.5.2"
31903
31926
  * @name plugin.Base#version
31904
31927
  */
31905
- this.version = "10.5.1";
31928
+ this.version = "10.5.2";
31906
31929
  };
31907
31930
 
31908
31931
  /**
@@ -36341,7 +36364,7 @@
36341
36364
  * @name version
36342
36365
  * @type {string}
36343
36366
  */
36344
- var version = "10.5.1";
36367
+ var version = "10.5.2";
36345
36368
 
36346
36369
 
36347
36370
  /**