mage-engine 3.23.42 → 3.23.44
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/mage.js +17 -3
- package/package.json +1 -1
package/dist/mage.js
CHANGED
|
@@ -58204,7 +58204,7 @@ function applyMiddleware() {
|
|
|
58204
58204
|
|
|
58205
58205
|
var thunk = createThunkMiddleware();
|
|
58206
58206
|
thunk.withExtraArgument = createThunkMiddleware;var name = "mage-engine";
|
|
58207
|
-
var version$1 = "3.23.
|
|
58207
|
+
var version$1 = "3.23.44";
|
|
58208
58208
|
var description = "A WebGL Javascript Game Engine, built on top of THREE.js and many other libraries.";
|
|
58209
58209
|
var main = "dist/mage.js";
|
|
58210
58210
|
var author$1 = {
|
|
@@ -91921,6 +91921,8 @@ let PointLight$1 = /*#__PURE__*/function (_Light) {
|
|
|
91921
91921
|
_this.getBody().shadow.camera.bottom = -d;
|
|
91922
91922
|
_this.getBody().shadow.camera.near = near;
|
|
91923
91923
|
_this.getBody().shadow.camera.far = far;
|
|
91924
|
+
|
|
91925
|
+
_this.getBody().shadow.camera.updateProjectionMatrix();
|
|
91924
91926
|
});
|
|
91925
91927
|
|
|
91926
91928
|
_defineProperty$1(_assertThisInitialized(_this), "setBias", function () {
|
|
@@ -92301,6 +92303,8 @@ let SpotLight$1 = /*#__PURE__*/function (_Light) {
|
|
|
92301
92303
|
_this.getBody().shadow.camera.bottom = -d;
|
|
92302
92304
|
_this.getBody().shadow.camera.near = near;
|
|
92303
92305
|
_this.getBody().shadow.camera.far = far;
|
|
92306
|
+
|
|
92307
|
+
_this.getBody().shadow.camera.updateProjectionMatrix();
|
|
92304
92308
|
});
|
|
92305
92309
|
|
|
92306
92310
|
_defineProperty$1(_assertThisInitialized(_this), "setBias", function () {
|
|
@@ -93030,6 +93034,8 @@ let SunLight$1 = /*#__PURE__*/function (_Light) {
|
|
|
93030
93034
|
_this.getBody().shadow.camera.bottom = -d;
|
|
93031
93035
|
_this.getBody().shadow.camera.near = near;
|
|
93032
93036
|
_this.getBody().shadow.camera.far = far;
|
|
93037
|
+
|
|
93038
|
+
_this.getBody().shadow.camera.updateProjectionMatrix();
|
|
93033
93039
|
});
|
|
93034
93040
|
|
|
93035
93041
|
_defineProperty$1(_assertThisInitialized(_this), "setBias", function () {
|
|
@@ -93126,6 +93132,7 @@ let SunLight$1 = /*#__PURE__*/function (_Light) {
|
|
|
93126
93132
|
let fov = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : DEFAULT_FOV$1;
|
|
93127
93133
|
this.fov = fov;
|
|
93128
93134
|
this.getBody().shadow.camera.fov = fov;
|
|
93135
|
+
this.getBody().shadow.camera.updateProjectionMatrix();
|
|
93129
93136
|
}
|
|
93130
93137
|
}, {
|
|
93131
93138
|
key: "getShadowCameraFov",
|
|
@@ -93209,7 +93216,7 @@ let SunLight$1 = /*#__PURE__*/function (_Light) {
|
|
|
93209
93216
|
bias: this.getBias(),
|
|
93210
93217
|
mapSize: this.getMapSize(),
|
|
93211
93218
|
shadowCamera: { ...this.getShadowCameraNearFar(),
|
|
93212
|
-
fov: this.
|
|
93219
|
+
fov: this.getShadowCameraFov()
|
|
93213
93220
|
}
|
|
93214
93221
|
};
|
|
93215
93222
|
}
|
|
@@ -96144,6 +96151,8 @@ let SunLight = /*#__PURE__*/function (_Light) {
|
|
|
96144
96151
|
_this.getBody().shadow.camera.bottom = -d;
|
|
96145
96152
|
_this.getBody().shadow.camera.near = near;
|
|
96146
96153
|
_this.getBody().shadow.camera.far = far;
|
|
96154
|
+
|
|
96155
|
+
_this.getBody().shadow.camera.updateProjectionMatrix();
|
|
96147
96156
|
});
|
|
96148
96157
|
|
|
96149
96158
|
_defineProperty$1(_assertThisInitialized(_this), "setBias", function () {
|
|
@@ -96240,6 +96249,7 @@ let SunLight = /*#__PURE__*/function (_Light) {
|
|
|
96240
96249
|
let fov = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : DEFAULT_FOV;
|
|
96241
96250
|
this.fov = fov;
|
|
96242
96251
|
this.getBody().shadow.camera.fov = fov;
|
|
96252
|
+
this.getBody().shadow.camera.updateProjectionMatrix();
|
|
96243
96253
|
}
|
|
96244
96254
|
}, {
|
|
96245
96255
|
key: "getShadowCameraFov",
|
|
@@ -96323,7 +96333,7 @@ let SunLight = /*#__PURE__*/function (_Light) {
|
|
|
96323
96333
|
bias: this.getBias(),
|
|
96324
96334
|
mapSize: this.getMapSize(),
|
|
96325
96335
|
shadowCamera: { ...this.getShadowCameraNearFar(),
|
|
96326
|
-
fov: this.
|
|
96336
|
+
fov: this.getShadowCameraFov()
|
|
96327
96337
|
}
|
|
96328
96338
|
};
|
|
96329
96339
|
}
|
|
@@ -96412,6 +96422,8 @@ let PointLight = /*#__PURE__*/function (_Light) {
|
|
|
96412
96422
|
_this.getBody().shadow.camera.bottom = -d;
|
|
96413
96423
|
_this.getBody().shadow.camera.near = near;
|
|
96414
96424
|
_this.getBody().shadow.camera.far = far;
|
|
96425
|
+
|
|
96426
|
+
_this.getBody().shadow.camera.updateProjectionMatrix();
|
|
96415
96427
|
});
|
|
96416
96428
|
|
|
96417
96429
|
_defineProperty$1(_assertThisInitialized(_this), "setBias", function () {
|
|
@@ -96673,6 +96685,8 @@ let SpotLight = /*#__PURE__*/function (_Light) {
|
|
|
96673
96685
|
_this.getBody().shadow.camera.bottom = -d;
|
|
96674
96686
|
_this.getBody().shadow.camera.near = near;
|
|
96675
96687
|
_this.getBody().shadow.camera.far = far;
|
|
96688
|
+
|
|
96689
|
+
_this.getBody().shadow.camera.updateProjectionMatrix();
|
|
96676
96690
|
});
|
|
96677
96691
|
|
|
96678
96692
|
_defineProperty$1(_assertThisInitialized(_this), "setBias", function () {
|