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.module.d.ts
CHANGED
|
@@ -8472,6 +8472,14 @@ export class WebGLCompositor {
|
|
|
8472
8472
|
* @ignore
|
|
8473
8473
|
*/
|
|
8474
8474
|
uploadTexture(texture: any, w: any, h: any, b: any, force?: boolean): any;
|
|
8475
|
+
/**
|
|
8476
|
+
* set/change the current projection matrix
|
|
8477
|
+
* @name setProjection
|
|
8478
|
+
* @memberof WebGLCompositor
|
|
8479
|
+
* @function
|
|
8480
|
+
* @param {Matrix3d} matrix
|
|
8481
|
+
*/
|
|
8482
|
+
setProjection(matrix: Matrix3d): void;
|
|
8475
8483
|
/**
|
|
8476
8484
|
* Select the shader to use for compositing
|
|
8477
8485
|
* @name useShader
|
package/dist/melonjs.module.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* melonJS Game Engine - v10.5.
|
|
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
|
|
@@ -29598,6 +29598,17 @@ class WebGLCompositor {
|
|
|
29598
29598
|
return this.currentTextureUnit;
|
|
29599
29599
|
}
|
|
29600
29600
|
|
|
29601
|
+
/**
|
|
29602
|
+
* set/change the current projection matrix
|
|
29603
|
+
* @name setProjection
|
|
29604
|
+
* @memberof WebGLCompositor
|
|
29605
|
+
* @function
|
|
29606
|
+
* @param {Matrix3d} matrix
|
|
29607
|
+
*/
|
|
29608
|
+
setProjection(matrix) {
|
|
29609
|
+
this.activeShader.setUniform("uProjectionMatrix", matrix);
|
|
29610
|
+
}
|
|
29611
|
+
|
|
29601
29612
|
/**
|
|
29602
29613
|
* Select the shader to use for compositing
|
|
29603
29614
|
* @name useShader
|
|
@@ -30077,6 +30088,18 @@ class WebGLRenderer extends Renderer {
|
|
|
30077
30088
|
this.currentCompositor.flush();
|
|
30078
30089
|
}
|
|
30079
30090
|
|
|
30091
|
+
/**
|
|
30092
|
+
* set/change the current projection matrix (WebGL only)
|
|
30093
|
+
* @name setProjection
|
|
30094
|
+
* @memberof WebGLRenderer.prototype
|
|
30095
|
+
* @function
|
|
30096
|
+
* @param {Matrix3d} matrix
|
|
30097
|
+
*/
|
|
30098
|
+
setProjection(matrix) {
|
|
30099
|
+
super.setProjection(matrix);
|
|
30100
|
+
this.currentCompositor.setProjection(matrix);
|
|
30101
|
+
}
|
|
30102
|
+
|
|
30080
30103
|
/**
|
|
30081
30104
|
* Clears the gl context with the given color.
|
|
30082
30105
|
* @name clearColor
|
|
@@ -31843,10 +31866,10 @@ class BasePlugin {
|
|
|
31843
31866
|
* this can be overridden by the plugin
|
|
31844
31867
|
* @public
|
|
31845
31868
|
* @type {string}
|
|
31846
|
-
* @default "10.5.
|
|
31869
|
+
* @default "10.5.2"
|
|
31847
31870
|
* @name plugin.Base#version
|
|
31848
31871
|
*/
|
|
31849
|
-
this.version = "10.5.
|
|
31872
|
+
this.version = "10.5.2";
|
|
31850
31873
|
}
|
|
31851
31874
|
}
|
|
31852
31875
|
|
|
@@ -36391,7 +36414,7 @@ class DroptargetEntity extends DropTarget {
|
|
|
36391
36414
|
* @name version
|
|
36392
36415
|
* @type {string}
|
|
36393
36416
|
*/
|
|
36394
|
-
const version = "10.5.
|
|
36417
|
+
const version = "10.5.2";
|
|
36395
36418
|
|
|
36396
36419
|
|
|
36397
36420
|
/**
|
package/package.json
CHANGED
|
@@ -359,6 +359,17 @@ class WebGLCompositor {
|
|
|
359
359
|
return this.currentTextureUnit;
|
|
360
360
|
}
|
|
361
361
|
|
|
362
|
+
/**
|
|
363
|
+
* set/change the current projection matrix
|
|
364
|
+
* @name setProjection
|
|
365
|
+
* @memberof WebGLCompositor
|
|
366
|
+
* @function
|
|
367
|
+
* @param {Matrix3d} matrix
|
|
368
|
+
*/
|
|
369
|
+
setProjection(matrix) {
|
|
370
|
+
this.activeShader.setUniform("uProjectionMatrix", matrix);
|
|
371
|
+
}
|
|
372
|
+
|
|
362
373
|
/**
|
|
363
374
|
* Select the shader to use for compositing
|
|
364
375
|
* @name useShader
|
|
@@ -319,6 +319,18 @@ class WebGLRenderer extends Renderer {
|
|
|
319
319
|
this.currentCompositor.flush();
|
|
320
320
|
}
|
|
321
321
|
|
|
322
|
+
/**
|
|
323
|
+
* set/change the current projection matrix (WebGL only)
|
|
324
|
+
* @name setProjection
|
|
325
|
+
* @memberof WebGLRenderer.prototype
|
|
326
|
+
* @function
|
|
327
|
+
* @param {Matrix3d} matrix
|
|
328
|
+
*/
|
|
329
|
+
setProjection(matrix) {
|
|
330
|
+
super.setProjection(matrix);
|
|
331
|
+
this.currentCompositor.setProjection(matrix);
|
|
332
|
+
}
|
|
333
|
+
|
|
322
334
|
/**
|
|
323
335
|
* Clears the gl context with the given color.
|
|
324
336
|
* @name clearColor
|