David Catuhe 7 年之前
父節點
當前提交
5458c6755f

File diff suppressed because it is too large
+ 17147 - 17147
Playground/babylon.d.txt


File diff suppressed because it is too large
+ 17067 - 17067
dist/preview release/babylon.d.ts


File diff suppressed because it is too large
+ 1 - 1
dist/preview release/babylon.js


+ 1 - 1
dist/preview release/babylon.max.js

@@ -48827,7 +48827,7 @@ var BABYLON;
                     up = up.clone();
                     up = up.negate();
                 }
-                BABYLON.Matrix.LookAtLHToRef(_this.position, target, up, _this._viewMatrix);
+                _this._computeViewMatrix(_this.position, target, up);
                 _this._viewMatrix.m[12] += _this.targetScreenOffset.x;
                 _this._viewMatrix.m[13] += _this.targetScreenOffset.y;
                 _this._collisionTriggered = false;

+ 1 - 1
dist/preview release/babylon.no-module.max.js

@@ -48794,7 +48794,7 @@ var BABYLON;
                     up = up.clone();
                     up = up.negate();
                 }
-                BABYLON.Matrix.LookAtLHToRef(_this.position, target, up, _this._viewMatrix);
+                _this._computeViewMatrix(_this.position, target, up);
                 _this._viewMatrix.m[12] += _this.targetScreenOffset.x;
                 _this._viewMatrix.m[13] += _this.targetScreenOffset.y;
                 _this._collisionTriggered = false;

File diff suppressed because it is too large
+ 1 - 1
dist/preview release/babylon.worker.js


+ 1 - 1
dist/preview release/es6.js

@@ -48794,7 +48794,7 @@ var BABYLON;
                     up = up.clone();
                     up = up.negate();
                 }
-                BABYLON.Matrix.LookAtLHToRef(_this.position, target, up, _this._viewMatrix);
+                _this._computeViewMatrix(_this.position, target, up);
                 _this._viewMatrix.m[12] += _this.targetScreenOffset.x;
                 _this._viewMatrix.m[13] += _this.targetScreenOffset.y;
                 _this._collisionTriggered = false;

+ 3 - 3
dist/preview release/viewer/babylon.viewer.d.ts

@@ -1200,9 +1200,9 @@ declare module BabylonViewer {
                     a: number;
             };
             mainColor?: {
-                    r: number;
-                    g: number;
-                    b: number;
+                    r?: number;
+                    g?: number;
+                    b?: number;
             };
             imageProcessingConfiguration?: IImageProcessingConfiguration;
             environmentTexture?: string;

File diff suppressed because it is too large
+ 4 - 4
dist/preview release/viewer/babylon.viewer.js


+ 4 - 4
dist/preview release/viewer/babylon.viewer.max.js

@@ -48915,7 +48915,7 @@ var BABYLON;
                     up = up.clone();
                     up = up.negate();
                 }
-                BABYLON.Matrix.LookAtLHToRef(_this.position, target, up, _this._viewMatrix);
+                _this._computeViewMatrix(_this.position, target, up);
                 _this._viewMatrix.m[12] += _this.targetScreenOffset.x;
                 _this._viewMatrix.m[13] += _this.targetScreenOffset.y;
                 _this._collisionTriggered = false;
@@ -108151,7 +108151,7 @@ var SceneManager = /** @class */ (function () {
             this._configureScene(newConfiguration.scene);
         }
         // optimizer
-        if (newConfiguration.optimizer) {
+        if (newConfiguration.optimizer !== undefined) {
             this._configureOptimizer(newConfiguration.optimizer);
         }
         // configure model
@@ -108312,10 +108312,10 @@ var SceneManager = /** @class */ (function () {
                 this.scene.environmentTexture = environmentTexture;
             }
         }
-        if (sceneConfig.debug) {
+        if (sceneConfig.debug === true) {
             this.scene.debugLayer.show();
         }
-        else {
+        else if (sceneConfig.debug === false) {
             if (this.scene.debugLayer.isVisible()) {
                 this.scene.debugLayer.hide();
             }

+ 3 - 3
dist/preview release/viewer/babylon.viewer.module.d.ts

@@ -1200,9 +1200,9 @@ declare module 'babylonjs-viewer/configuration/configuration' {
                     a: number;
             };
             mainColor?: {
-                    r: number;
-                    g: number;
-                    b: number;
+                    r?: number;
+                    g?: number;
+                    b?: number;
             };
             imageProcessingConfiguration?: IImageProcessingConfiguration;
             environmentTexture?: string;