sebavan 6 năm trước cách đây
mục cha
commit
eb15f43a5d

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 13765 - 13760
Playground/babylon.d.txt


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 11021 - 11021
dist/preview release/babylon.d.ts


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
dist/preview release/babylon.js


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

@@ -52719,10 +52719,6 @@ var BABYLON;
             var camLeft = this._rigCameras[0];
             var camRight = this._rigCameras[1];
             camLeft.beta = camRight.beta = this.beta;
-            // This looks like being an issue in rig mode. Should be looked if
-            // further issues are found. but was modifying the view matrix twice
-            // Line below commented in order to fix http://www.html5gamedevs.com/topic/41454-confusion-about-camera-positions/
-            // camLeft.radius = camRight.radius = this.radius;
             switch (this.cameraRigMode) {
                 case BABYLON.Camera.RIG_MODE_STEREOSCOPIC_ANAGLYPH:
                 case BABYLON.Camera.RIG_MODE_STEREOSCOPIC_SIDEBYSIDE_PARALLEL:
@@ -69762,7 +69758,7 @@ var BABYLON;
                     // place and scale the particle bouding sphere in the SPS local system, then update it
                     var minBbox = modelBoundingInfo.minimum.multiplyToRef(particleScaling, tempVectors[1]);
                     var maxBbox = modelBoundingInfo.maximum.multiplyToRef(particleScaling, tempVectors[2]);
-                    var bSphereCenter = maxBbox.addToRef(minBbox, tempVectors[3]).scaleInPlace(0.5);
+                    var bSphereCenter = maxBbox.addToRef(minBbox, tempVectors[3]).scaleInPlace(0.5).addInPlace(particleGlobalPosition);
                     var halfDiag = maxBbox.subtractToRef(minBbox, tempVectors[4]).scaleInPlace(0.5 * this._bSphereRadiusFactor);
                     var bSphereMinBbox = bSphereCenter.subtractToRef(halfDiag, tempVectors[1]);
                     var bSphereMaxBbox = bSphereCenter.addToRef(halfDiag, tempVectors[2]);

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

@@ -52686,10 +52686,6 @@ var BABYLON;
             var camLeft = this._rigCameras[0];
             var camRight = this._rigCameras[1];
             camLeft.beta = camRight.beta = this.beta;
-            // This looks like being an issue in rig mode. Should be looked if
-            // further issues are found. but was modifying the view matrix twice
-            // Line below commented in order to fix http://www.html5gamedevs.com/topic/41454-confusion-about-camera-positions/
-            // camLeft.radius = camRight.radius = this.radius;
             switch (this.cameraRigMode) {
                 case BABYLON.Camera.RIG_MODE_STEREOSCOPIC_ANAGLYPH:
                 case BABYLON.Camera.RIG_MODE_STEREOSCOPIC_SIDEBYSIDE_PARALLEL:
@@ -69729,7 +69725,7 @@ var BABYLON;
                     // place and scale the particle bouding sphere in the SPS local system, then update it
                     var minBbox = modelBoundingInfo.minimum.multiplyToRef(particleScaling, tempVectors[1]);
                     var maxBbox = modelBoundingInfo.maximum.multiplyToRef(particleScaling, tempVectors[2]);
-                    var bSphereCenter = maxBbox.addToRef(minBbox, tempVectors[3]).scaleInPlace(0.5);
+                    var bSphereCenter = maxBbox.addToRef(minBbox, tempVectors[3]).scaleInPlace(0.5).addInPlace(particleGlobalPosition);
                     var halfDiag = maxBbox.subtractToRef(minBbox, tempVectors[4]).scaleInPlace(0.5 * this._bSphereRadiusFactor);
                     var bSphereMinBbox = bSphereCenter.subtractToRef(halfDiag, tempVectors[1]);
                     var bSphereMaxBbox = bSphereCenter.addToRef(halfDiag, tempVectors[2]);

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
dist/preview release/babylon.worker.js


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

@@ -52686,10 +52686,6 @@ var BABYLON;
             var camLeft = this._rigCameras[0];
             var camRight = this._rigCameras[1];
             camLeft.beta = camRight.beta = this.beta;
-            // This looks like being an issue in rig mode. Should be looked if
-            // further issues are found. but was modifying the view matrix twice
-            // Line below commented in order to fix http://www.html5gamedevs.com/topic/41454-confusion-about-camera-positions/
-            // camLeft.radius = camRight.radius = this.radius;
             switch (this.cameraRigMode) {
                 case BABYLON.Camera.RIG_MODE_STEREOSCOPIC_ANAGLYPH:
                 case BABYLON.Camera.RIG_MODE_STEREOSCOPIC_SIDEBYSIDE_PARALLEL:
@@ -69729,7 +69725,7 @@ var BABYLON;
                     // place and scale the particle bouding sphere in the SPS local system, then update it
                     var minBbox = modelBoundingInfo.minimum.multiplyToRef(particleScaling, tempVectors[1]);
                     var maxBbox = modelBoundingInfo.maximum.multiplyToRef(particleScaling, tempVectors[2]);
-                    var bSphereCenter = maxBbox.addToRef(minBbox, tempVectors[3]).scaleInPlace(0.5);
+                    var bSphereCenter = maxBbox.addToRef(minBbox, tempVectors[3]).scaleInPlace(0.5).addInPlace(particleGlobalPosition);
                     var halfDiag = maxBbox.subtractToRef(minBbox, tempVectors[4]).scaleInPlace(0.5 * this._bSphereRadiusFactor);
                     var bSphereMinBbox = bSphereCenter.subtractToRef(halfDiag, tempVectors[1]);
                     var bSphereMaxBbox = bSphereCenter.addToRef(halfDiag, tempVectors[2]);

+ 5 - 0
dist/preview release/gui/babylon.gui.d.ts

@@ -2013,6 +2013,11 @@ declare module BABYLON.GUI {
             constructor(
             /** name of ScrollViewer */
             name?: string | undefined);
+            /**
+                * Gets or sets the mouse wheel precision
+                * from 0 to 1 with a default value of 0.05
+                * */
+            wheelPrecision: number;
             /** Gets or sets the bar color */
             barColor: string;
             /** Gets or sets the bar color */

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
dist/preview release/gui/babylon.gui.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
dist/preview release/gui/babylon.gui.min.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
dist/preview release/gui/babylon.gui.min.js.map


+ 10 - 0
dist/preview release/gui/babylon.gui.module.d.ts

@@ -2165,6 +2165,11 @@ declare module 'babylonjs-gui/2D/controls/scrollViewer' {
             constructor(
             /** name of ScrollViewer */
             name?: string | undefined);
+            /**
+                * Gets or sets the mouse wheel precision
+                * from 0 to 1 with a default value of 0.05
+                * */
+            wheelPrecision: number;
             /** Gets or sets the bar color */
             barColor: string;
             /** Gets or sets the bar color */
@@ -5140,6 +5145,11 @@ declare module BABYLON.GUI {
             constructor(
             /** name of ScrollViewer */
             name?: string | undefined);
+            /**
+                * Gets or sets the mouse wheel precision
+                * from 0 to 1 with a default value of 0.05
+                * */
+            wheelPrecision: number;
             /** Gets or sets the bar color */
             barColor: string;
             /** Gets or sets the bar color */

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
dist/preview release/viewer/babylon.viewer.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 2 - 2
dist/preview release/viewer/babylon.viewer.max.js