@babylonjs/core 9.8.0 → 9.9.1
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/Audio/audioSceneComponent.pure.js +17 -9
- package/Bones/bone.pure.js +39 -29
- package/Cameras/arcRotateCamera.pure.d.ts +0 -8
- package/Cameras/arcRotateCamera.pure.js +0 -12
- package/Cameras/arcRotateCamera.pure.js.map +1 -1
- package/Cameras/inputMapper.d.ts +29 -8
- package/Cameras/inputMapper.js +63 -10
- package/Cameras/inputMapper.js.map +1 -1
- package/Cameras/targetCamera.pure.js +40 -27
- package/Culling/Helper/transformFeedbackBoundingHelper.pure.js +17 -23
- package/Engines/abstractEngine.pure.js +11 -4
- package/Engines/abstractEngine.pure.js.map +1 -1
- package/Engines/engine.pure.d.ts +23 -0
- package/Engines/engine.pure.js +96 -1
- package/Engines/engine.pure.js.map +1 -1
- package/Engines/nativeEngine.pure.d.ts +4 -0
- package/Engines/nativeEngine.pure.js +6 -0
- package/Engines/nativeEngine.pure.js.map +1 -1
- package/Engines/thinEngine.pure.js +234 -280
- package/Engines/thinNativeEngine.pure.d.ts +21 -0
- package/Engines/thinNativeEngine.pure.js +119 -4
- package/Engines/thinNativeEngine.pure.js.map +1 -1
- package/Engines/webgpuEngine.pure.d.ts +21 -0
- package/Engines/webgpuEngine.pure.js +46 -1
- package/Engines/webgpuEngine.pure.js.map +1 -1
- package/Materials/Background/backgroundMaterial.pure.js +5 -4
- package/Materials/Background/backgroundMaterial.pure.js.map +1 -1
- package/Materials/GaussianSplatting/gaussianSplattingDebugMaterialPlugin.d.ts +5 -0
- package/Materials/GaussianSplatting/gaussianSplattingDebugMaterialPlugin.js +8 -0
- package/Materials/GaussianSplatting/gaussianSplattingDebugMaterialPlugin.js.map +1 -0
- package/Materials/GaussianSplatting/gaussianSplattingDebugMaterialPlugin.pure.d.ts +278 -0
- package/Materials/GaussianSplatting/gaussianSplattingDebugMaterialPlugin.pure.js +718 -0
- package/Materials/GaussianSplatting/gaussianSplattingDebugMaterialPlugin.pure.js.map +1 -0
- package/Materials/GaussianSplatting/pure.d.ts +1 -0
- package/Materials/GaussianSplatting/pure.js +1 -0
- package/Materials/GaussianSplatting/pure.js.map +1 -1
- package/Materials/Node/Blocks/Dual/imageSourceBlock.pure.js +10 -14
- package/Materials/Node/Blocks/Dual/index.d.ts +0 -14
- package/Materials/Node/Blocks/Dual/index.js +0 -18
- package/Materials/Node/Blocks/Dual/index.js.map +1 -1
- package/Materials/Node/Blocks/Dual/textureBlock.pure.js +660 -662
- package/Materials/Node/Blocks/Fragment/index.d.ts +0 -10
- package/Materials/Node/Blocks/Fragment/index.js +0 -13
- package/Materials/Node/Blocks/Fragment/index.js.map +1 -1
- package/Materials/Node/Blocks/GaussianSplatting/index.d.ts +12 -0
- package/Materials/Node/Blocks/GaussianSplatting/index.js +14 -1
- package/Materials/Node/Blocks/GaussianSplatting/index.js.map +1 -1
- package/Materials/Node/Blocks/Vertex/index.d.ts +0 -8
- package/Materials/Node/Blocks/Vertex/index.js +0 -10
- package/Materials/Node/Blocks/Vertex/index.js.map +1 -1
- package/Materials/PBR/openpbrMaterial.pure.js +6 -5
- package/Materials/PBR/openpbrMaterial.pure.js.map +1 -1
- package/Materials/PBR/pbrBaseMaterial.pure.js +6 -5
- package/Materials/PBR/pbrBaseMaterial.pure.js.map +1 -1
- package/Materials/Textures/index.d.ts +1 -0
- package/Materials/Textures/index.js +1 -0
- package/Materials/Textures/index.js.map +1 -1
- package/Materials/Textures/internalTexture.d.ts +11 -1
- package/Materials/Textures/internalTexture.js +23 -0
- package/Materials/Textures/internalTexture.js.map +1 -1
- package/Materials/Textures/texture.pure.js +157 -255
- package/Materials/index.d.ts +30 -0
- package/Materials/index.js +31 -0
- package/Materials/index.js.map +1 -1
- package/Materials/material.pure.js +128 -69
- package/Materials/pure.d.ts +1 -0
- package/Materials/pure.js +1 -0
- package/Materials/pure.js.map +1 -1
- package/Materials/standardMaterial.pure.js +6 -5
- package/Materials/standardMaterial.pure.js.map +1 -1
- package/Maths/math.color.pure.js +55 -47
- package/Maths/math.vector.pure.js +118 -242
- package/Meshes/GaussianSplatting/gaussianSplattingDebugger.d.ts +7 -0
- package/Meshes/GaussianSplatting/gaussianSplattingDebugger.js +8 -0
- package/Meshes/GaussianSplatting/gaussianSplattingDebugger.js.map +1 -0
- package/Meshes/GaussianSplatting/gaussianSplattingDebugger.pure.d.ts +147 -0
- package/Meshes/GaussianSplatting/gaussianSplattingDebugger.pure.js +257 -0
- package/Meshes/GaussianSplatting/gaussianSplattingDebugger.pure.js.map +1 -0
- package/Meshes/GaussianSplatting/gaussianSplattingMeshBase.pure.d.ts +11 -0
- package/Meshes/GaussianSplatting/gaussianSplattingMeshBase.pure.js +31 -0
- package/Meshes/GaussianSplatting/gaussianSplattingMeshBase.pure.js.map +1 -1
- package/Meshes/GaussianSplatting/pure.d.ts +1 -0
- package/Meshes/GaussianSplatting/pure.js +1 -0
- package/Meshes/GaussianSplatting/pure.js.map +1 -1
- package/Meshes/GreasedLine/greasedLineMesh.pure.js +9 -14
- package/Meshes/GreasedLine/greasedLineRibbonMesh.pure.js +26 -27
- package/Meshes/index.d.ts +1 -0
- package/Meshes/index.js +1 -0
- package/Meshes/index.js.map +1 -1
- package/Meshes/meshSimplification.common.d.ts +53 -0
- package/Meshes/meshSimplification.common.js +34 -0
- package/Meshes/meshSimplification.common.js.map +1 -0
- package/Meshes/meshSimplification.d.ts +3 -53
- package/Meshes/meshSimplification.js +1 -33
- package/Meshes/meshSimplification.js.map +1 -1
- package/Meshes/meshSimplificationSceneComponent.pure.js.map +1 -1
- package/Meshes/meshSimplificationSceneComponent.types.d.ts +2 -1
- package/Meshes/meshSimplificationSceneComponent.types.js.map +1 -1
- package/Meshes/pure.d.ts +1 -0
- package/Meshes/pure.js +1 -0
- package/Meshes/pure.js.map +1 -1
- package/Meshes/transformNode.pure.js +82 -44
- package/Misc/tools.pure.js +124 -186
- package/Misc/tools.pure.js.map +1 -1
- package/Physics/v1/physicsImpostor.pure.js +43 -37
- package/Shaders/ShadersInclude/gaussianSplatting.js +33 -10
- package/Shaders/ShadersInclude/gaussianSplatting.js.map +1 -1
- package/Shaders/gaussianSplatting.vertex.js +20 -1
- package/Shaders/gaussianSplatting.vertex.js.map +1 -1
- package/Shaders/picking.fragment.js +4 -1
- package/Shaders/picking.fragment.js.map +1 -1
- package/ShadersWGSL/ShadersInclude/gaussianSplatting.js +33 -10
- package/ShadersWGSL/ShadersInclude/gaussianSplatting.js.map +1 -1
- package/ShadersWGSL/gaussianSplatting.vertex.js +21 -2
- package/ShadersWGSL/gaussianSplatting.vertex.js.map +1 -1
- package/SmartAssets/index.d.ts +2 -2
- package/SmartAssets/index.js +2 -1
- package/SmartAssets/index.js.map +1 -1
- package/SmartAssets/pure.d.ts +1 -1
- package/SmartAssets/pure.js +2 -1
- package/SmartAssets/pure.js.map +1 -1
- package/SmartAssets/smartAssetManager.js +9 -0
- package/SmartAssets/smartAssetManager.js.map +1 -1
- package/package.json +3 -1
|
@@ -295,7 +295,8 @@ export class TransformNode extends Node {
|
|
|
295
295
|
if (this._postMultiplyPivotMatrix) {
|
|
296
296
|
if (!this._pivotMatrixInverse) {
|
|
297
297
|
this._pivotMatrixInverse = Matrix.Invert(this._pivotMatrix);
|
|
298
|
-
}
|
|
298
|
+
}
|
|
299
|
+
else {
|
|
299
300
|
this._pivotMatrix.invertToRef(this._pivotMatrixInverse);
|
|
300
301
|
}
|
|
301
302
|
}
|
|
@@ -343,12 +344,14 @@ export class TransformNode extends Node {
|
|
|
343
344
|
this._rotationQuaternion = this._rotationQuaternion || Quaternion.Identity();
|
|
344
345
|
newWorldMatrix.decompose(this._scaling, this._rotationQuaternion, this._position);
|
|
345
346
|
this.computeWorldMatrix(true);
|
|
346
|
-
}
|
|
347
|
+
}
|
|
348
|
+
else {
|
|
347
349
|
this._worldMatrix = newWorldMatrix;
|
|
348
350
|
this._absolutePosition.copyFromFloats(this._worldMatrix.m[12], this._worldMatrix.m[13], this._worldMatrix.m[14]);
|
|
349
351
|
this._afterComputeWorldMatrix();
|
|
350
352
|
}
|
|
351
|
-
}
|
|
353
|
+
}
|
|
354
|
+
else {
|
|
352
355
|
this._isWorldMatrixFrozen = false; // no guarantee world is not already frozen, switch off temporarily
|
|
353
356
|
this.computeWorldMatrix(true);
|
|
354
357
|
}
|
|
@@ -398,7 +401,8 @@ export class TransformNode extends Node {
|
|
|
398
401
|
absolutePositionX = arguments[0];
|
|
399
402
|
absolutePositionY = arguments[1];
|
|
400
403
|
absolutePositionZ = arguments[2];
|
|
401
|
-
}
|
|
404
|
+
}
|
|
405
|
+
else {
|
|
402
406
|
absolutePositionX = absolutePosition.x;
|
|
403
407
|
absolutePositionY = absolutePosition.y;
|
|
404
408
|
absolutePositionZ = absolutePosition.z;
|
|
@@ -407,7 +411,8 @@ export class TransformNode extends Node {
|
|
|
407
411
|
const invertParentWorldMatrix = TmpVectors.Matrix[0];
|
|
408
412
|
this.parent.getWorldMatrix().invertToRef(invertParentWorldMatrix);
|
|
409
413
|
Vector3.TransformCoordinatesFromFloatsToRef(absolutePositionX, absolutePositionY, absolutePositionZ, invertParentWorldMatrix, this.position);
|
|
410
|
-
}
|
|
414
|
+
}
|
|
415
|
+
else {
|
|
411
416
|
this.position.x = absolutePositionX;
|
|
412
417
|
this.position.y = absolutePositionY;
|
|
413
418
|
this.position.z = absolutePositionZ;
|
|
@@ -471,7 +476,8 @@ export class TransformNode extends Node {
|
|
|
471
476
|
parentRotationMatrix.invert();
|
|
472
477
|
rotationMatrix.multiplyToRef(parentRotationMatrix, rotationMatrix);
|
|
473
478
|
this.rotationQuaternion.fromRotationMatrix(rotationMatrix);
|
|
474
|
-
}
|
|
479
|
+
}
|
|
480
|
+
else {
|
|
475
481
|
// Get local rotation matrix of the looking object
|
|
476
482
|
const quaternionRotation = TmpVectors.Quaternion[0];
|
|
477
483
|
Quaternion.FromEulerVectorToRef(this.rotation, quaternionRotation);
|
|
@@ -525,7 +531,8 @@ export class TransformNode extends Node {
|
|
|
525
531
|
const pitch = -Math.atan2(localAxis.y, len);
|
|
526
532
|
if (this.rotationQuaternion) {
|
|
527
533
|
Quaternion.RotationYawPitchRollToRef(yaw + yawCor, pitch + pitchCor, rollCor, this.rotationQuaternion);
|
|
528
|
-
}
|
|
534
|
+
}
|
|
535
|
+
else {
|
|
529
536
|
this.rotation.x = pitch + pitchCor;
|
|
530
537
|
this.rotation.y = yaw + yawCor;
|
|
531
538
|
this.rotation.z = rollCor;
|
|
@@ -649,7 +656,8 @@ export class TransformNode extends Node {
|
|
|
649
656
|
composedMatrix.decompose(scale, quatRotation, position, preserveScalingSign ? this : undefined);
|
|
650
657
|
if (this.rotationQuaternion) {
|
|
651
658
|
this.rotationQuaternion.copyFrom(quatRotation);
|
|
652
|
-
}
|
|
659
|
+
}
|
|
660
|
+
else {
|
|
653
661
|
quatRotation.toEulerAnglesToRef(this.rotation);
|
|
654
662
|
}
|
|
655
663
|
this.scaling.copyFrom(scale);
|
|
@@ -735,7 +743,8 @@ export class TransformNode extends Node {
|
|
|
735
743
|
this._transformToBoneReferal = null;
|
|
736
744
|
if (resetToPreviousParent) {
|
|
737
745
|
this.parent = this._currentParentWhenAttachingToBone;
|
|
738
|
-
}
|
|
746
|
+
}
|
|
747
|
+
else {
|
|
739
748
|
this.parent = null;
|
|
740
749
|
}
|
|
741
750
|
return this;
|
|
@@ -760,7 +769,8 @@ export class TransformNode extends Node {
|
|
|
760
769
|
if (!space || space === 0 /* Space.LOCAL */) {
|
|
761
770
|
rotationQuaternion = Quaternion.RotationAxisToRef(axis, amount, TransformNode._RotationAxisCache);
|
|
762
771
|
this.rotationQuaternion.multiplyToRef(rotationQuaternion, this.rotationQuaternion);
|
|
763
|
-
}
|
|
772
|
+
}
|
|
773
|
+
else {
|
|
764
774
|
if (this.parent) {
|
|
765
775
|
const parentWorldMatrix = this.parent.getWorldMatrix();
|
|
766
776
|
const invertParentWorldMatrix = TmpVectors.Matrix[0];
|
|
@@ -823,7 +833,8 @@ export class TransformNode extends Node {
|
|
|
823
833
|
if (!space || space === 0 /* Space.LOCAL */) {
|
|
824
834
|
const tempV3 = this.getPositionExpressedInLocalSpace().add(displacementVector);
|
|
825
835
|
this.setPositionWithLocalVector(tempV3);
|
|
826
|
-
}
|
|
836
|
+
}
|
|
837
|
+
else {
|
|
827
838
|
this.setAbsolutePosition(this.getAbsolutePosition().add(displacementVector));
|
|
828
839
|
}
|
|
829
840
|
return this;
|
|
@@ -849,7 +860,8 @@ export class TransformNode extends Node {
|
|
|
849
860
|
let rotationQuaternion;
|
|
850
861
|
if (this.rotationQuaternion) {
|
|
851
862
|
rotationQuaternion = this.rotationQuaternion;
|
|
852
|
-
}
|
|
863
|
+
}
|
|
864
|
+
else {
|
|
853
865
|
rotationQuaternion = TmpVectors.Quaternion[1];
|
|
854
866
|
Quaternion.RotationYawPitchRollToRef(this.rotation.y, this.rotation.x, this.rotation.z, rotationQuaternion);
|
|
855
867
|
}
|
|
@@ -930,7 +942,8 @@ export class TransformNode extends Node {
|
|
|
930
942
|
this._rotation.copyFromFloats(0, 0, 0);
|
|
931
943
|
}
|
|
932
944
|
}
|
|
933
|
-
}
|
|
945
|
+
}
|
|
946
|
+
else {
|
|
934
947
|
rotation = TransformNode._TmpRotation;
|
|
935
948
|
Quaternion.RotationYawPitchRollToRef(this._rotation.y, this._rotation.x, this._rotation.z, rotation);
|
|
936
949
|
}
|
|
@@ -949,7 +962,8 @@ export class TransformNode extends Node {
|
|
|
949
962
|
this._localMatrix.multiplyToRef(this._pivotMatrixInverse, this._localMatrix);
|
|
950
963
|
}
|
|
951
964
|
this._localMatrix.addTranslationFromFloats(translation.x, translation.y, translation.z);
|
|
952
|
-
}
|
|
965
|
+
}
|
|
966
|
+
else {
|
|
953
967
|
Matrix.ComposeToRef(scaling, rotation, translation, this._localMatrix);
|
|
954
968
|
}
|
|
955
969
|
// Parent
|
|
@@ -962,7 +976,8 @@ export class TransformNode extends Node {
|
|
|
962
976
|
const bone = this.parent;
|
|
963
977
|
bone.getSkeleton().prepare();
|
|
964
978
|
bone.getFinalMatrix().multiplyToRef(this._transformToBoneReferal.getWorldMatrix(), TmpVectors.Matrix[7]);
|
|
965
|
-
}
|
|
979
|
+
}
|
|
980
|
+
else {
|
|
966
981
|
TmpVectors.Matrix[7].copyFrom(parent.getWorldMatrix());
|
|
967
982
|
}
|
|
968
983
|
// Extract scaling and translation from parent
|
|
@@ -978,18 +993,21 @@ export class TransformNode extends Node {
|
|
|
978
993
|
this._localMatrix.setTranslation(translation);
|
|
979
994
|
}
|
|
980
995
|
this._localMatrix.multiplyToRef(TmpVectors.Matrix[7], this._worldMatrix);
|
|
981
|
-
}
|
|
996
|
+
}
|
|
997
|
+
else {
|
|
982
998
|
if (this._transformToBoneReferal) {
|
|
983
999
|
const bone = this.parent;
|
|
984
1000
|
bone.getSkeleton().prepare();
|
|
985
1001
|
this._localMatrix.multiplyToRef(bone.getFinalMatrix(), TmpVectors.Matrix[6]);
|
|
986
1002
|
TmpVectors.Matrix[6].multiplyToRef(this._transformToBoneReferal.getWorldMatrix(), this._worldMatrix);
|
|
987
|
-
}
|
|
1003
|
+
}
|
|
1004
|
+
else {
|
|
988
1005
|
this._localMatrix.multiplyToRef(parent.getWorldMatrix(), this._worldMatrix);
|
|
989
1006
|
}
|
|
990
1007
|
}
|
|
991
1008
|
this._markSyncedWithParent();
|
|
992
|
-
}
|
|
1009
|
+
}
|
|
1010
|
+
else {
|
|
993
1011
|
this._worldMatrix.copyFrom(this._localMatrix);
|
|
994
1012
|
}
|
|
995
1013
|
if (camera && this.billboardMode) {
|
|
@@ -1060,7 +1078,8 @@ export class TransformNode extends Node {
|
|
|
1060
1078
|
eulerAngles.z = 0;
|
|
1061
1079
|
}
|
|
1062
1080
|
Matrix.RotationYawPitchRollToRef(eulerAngles.y, eulerAngles.x, eulerAngles.z, TmpVectors.Matrix[0]);
|
|
1063
|
-
}
|
|
1081
|
+
}
|
|
1082
|
+
else {
|
|
1064
1083
|
Matrix.FromQuaternionToRef(TmpVectors.Quaternion[0], TmpVectors.Matrix[0]);
|
|
1065
1084
|
}
|
|
1066
1085
|
// Cancel translation
|
|
@@ -1075,12 +1094,15 @@ export class TransformNode extends Node {
|
|
|
1075
1094
|
if (!this.ignoreNonUniformScaling) {
|
|
1076
1095
|
if (this._scaling.isNonUniformWithinEpsilon(0.000001)) {
|
|
1077
1096
|
this._updateNonUniformScalingState(true);
|
|
1078
|
-
}
|
|
1097
|
+
}
|
|
1098
|
+
else if (parent && parent._nonUniformScaling) {
|
|
1079
1099
|
this._updateNonUniformScalingState(parent._nonUniformScaling);
|
|
1080
|
-
}
|
|
1100
|
+
}
|
|
1101
|
+
else {
|
|
1081
1102
|
this._updateNonUniformScalingState(false);
|
|
1082
1103
|
}
|
|
1083
|
-
}
|
|
1104
|
+
}
|
|
1105
|
+
else {
|
|
1084
1106
|
this._updateNonUniformScalingState(false);
|
|
1085
1107
|
}
|
|
1086
1108
|
this._afterComputeWorldMatrix();
|
|
@@ -1114,7 +1136,8 @@ export class TransformNode extends Node {
|
|
|
1114
1136
|
bakedMatrix.decompose(child.scaling, tmpRotationQuaternion, child.position);
|
|
1115
1137
|
if (child.rotationQuaternion) {
|
|
1116
1138
|
child.rotationQuaternion.copyFrom(tmpRotationQuaternion);
|
|
1117
|
-
}
|
|
1139
|
+
}
|
|
1140
|
+
else {
|
|
1118
1141
|
tmpRotationQuaternion.toEulerAnglesToRef(child.rotation);
|
|
1119
1142
|
}
|
|
1120
1143
|
}
|
|
@@ -1129,7 +1152,7 @@ export class TransformNode extends Node {
|
|
|
1129
1152
|
}
|
|
1130
1153
|
this._worldMatrix = Matrix.Identity();
|
|
1131
1154
|
}
|
|
1132
|
-
_afterComputeWorldMatrix() {}
|
|
1155
|
+
_afterComputeWorldMatrix() { }
|
|
1133
1156
|
/**
|
|
1134
1157
|
* If you'd like to be called back after the mesh position, rotation or scaling has been updated.
|
|
1135
1158
|
* @param func callback function to add
|
|
@@ -1274,7 +1297,8 @@ export class TransformNode extends Node {
|
|
|
1274
1297
|
if (this.rotationQuaternion) {
|
|
1275
1298
|
storedRotationQuaternion = this.rotationQuaternion.clone();
|
|
1276
1299
|
this.rotationQuaternion.copyFromFloats(0, 0, 0, 1);
|
|
1277
|
-
}
|
|
1300
|
+
}
|
|
1301
|
+
else if (this.rotation) {
|
|
1278
1302
|
storedRotation = this.rotation.clone();
|
|
1279
1303
|
this.rotation.copyFromFloats(0, 0, 0);
|
|
1280
1304
|
}
|
|
@@ -1290,7 +1314,8 @@ export class TransformNode extends Node {
|
|
|
1290
1314
|
if (ignoreRotation) {
|
|
1291
1315
|
if (this.rotationQuaternion && storedRotationQuaternion) {
|
|
1292
1316
|
this.rotationQuaternion.copyFrom(storedRotationQuaternion);
|
|
1293
|
-
}
|
|
1317
|
+
}
|
|
1318
|
+
else if (this.rotation && storedRotation) {
|
|
1294
1319
|
this.rotation.copyFrom(storedRotation);
|
|
1295
1320
|
}
|
|
1296
1321
|
}
|
|
@@ -1339,15 +1364,33 @@ TransformNode._TmpTranslation = /*#__PURE__*/ Vector3.Zero();
|
|
|
1339
1364
|
TransformNode._TmpRHRestore = /*#__PURE__*/ Matrix.Scaling(1, 1, -1);
|
|
1340
1365
|
TransformNode._LookAtVectorCache = /*#__PURE__*/ new Vector3(0, 0, 0);
|
|
1341
1366
|
TransformNode._RotationAxisCache = /*#__PURE__*/ new Quaternion();
|
|
1342
|
-
__decorate([
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
__decorate([
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
__decorate([
|
|
1349
|
-
|
|
1350
|
-
|
|
1367
|
+
__decorate([
|
|
1368
|
+
serializeAsVector3("position")
|
|
1369
|
+
], TransformNode.prototype, "_position", void 0);
|
|
1370
|
+
__decorate([
|
|
1371
|
+
serializeAsVector3("rotation")
|
|
1372
|
+
], TransformNode.prototype, "_rotation", void 0);
|
|
1373
|
+
__decorate([
|
|
1374
|
+
serializeAsQuaternion("rotationQuaternion")
|
|
1375
|
+
], TransformNode.prototype, "_rotationQuaternion", void 0);
|
|
1376
|
+
__decorate([
|
|
1377
|
+
serializeAsVector3("scaling")
|
|
1378
|
+
], TransformNode.prototype, "_scaling", void 0);
|
|
1379
|
+
__decorate([
|
|
1380
|
+
serialize("billboardMode")
|
|
1381
|
+
], TransformNode.prototype, "_billboardMode", void 0);
|
|
1382
|
+
__decorate([
|
|
1383
|
+
serialize()
|
|
1384
|
+
], TransformNode.prototype, "scalingDeterminant", void 0);
|
|
1385
|
+
__decorate([
|
|
1386
|
+
serialize("infiniteDistance")
|
|
1387
|
+
], TransformNode.prototype, "_infiniteDistance", void 0);
|
|
1388
|
+
__decorate([
|
|
1389
|
+
serialize()
|
|
1390
|
+
], TransformNode.prototype, "ignoreNonUniformScaling", void 0);
|
|
1391
|
+
__decorate([
|
|
1392
|
+
serialize()
|
|
1393
|
+
], TransformNode.prototype, "reIntegrateRotationIntoRotationQuaternion", void 0);
|
|
1351
1394
|
/**
|
|
1352
1395
|
* Returns a new TransformNode object parsed from the source provided.
|
|
1353
1396
|
* @param parsedTransformNode is the source.
|
|
@@ -1359,7 +1402,8 @@ export function TransformNodeParse(parsedTransformNode, scene, rootUrl) {
|
|
|
1359
1402
|
const transformNode = SerializationHelper.Parse(() => new TransformNode(parsedTransformNode.name, scene), parsedTransformNode, scene, rootUrl);
|
|
1360
1403
|
if (parsedTransformNode.localMatrix) {
|
|
1361
1404
|
transformNode.setPreTransformMatrix(Matrix.FromArray(parsedTransformNode.localMatrix));
|
|
1362
|
-
}
|
|
1405
|
+
}
|
|
1406
|
+
else if (parsedTransformNode.pivotMatrix) {
|
|
1363
1407
|
transformNode.setPivotMatrix(Matrix.FromArray(parsedTransformNode.pivotMatrix));
|
|
1364
1408
|
}
|
|
1365
1409
|
transformNode.setEnabled(parsedTransformNode.isEnabled);
|
|
@@ -1386,13 +1430,7 @@ export function TransformNodeParse(parsedTransformNode, scene, rootUrl) {
|
|
|
1386
1430
|
Node.ParseAnimationRanges(transformNode, parsedTransformNode, scene);
|
|
1387
1431
|
}
|
|
1388
1432
|
if (parsedTransformNode.autoAnimate) {
|
|
1389
|
-
scene.beginAnimation(
|
|
1390
|
-
transformNode,
|
|
1391
|
-
parsedTransformNode.autoAnimateFrom,
|
|
1392
|
-
parsedTransformNode.autoAnimateTo,
|
|
1393
|
-
parsedTransformNode.autoAnimateLoop,
|
|
1394
|
-
parsedTransformNode.autoAnimateSpeed || 1.0
|
|
1395
|
-
);
|
|
1433
|
+
scene.beginAnimation(transformNode, parsedTransformNode.autoAnimateFrom, parsedTransformNode.autoAnimateTo, parsedTransformNode.autoAnimateLoop, parsedTransformNode.autoAnimateSpeed || 1.0);
|
|
1396
1434
|
}
|
|
1397
1435
|
return transformNode;
|
|
1398
1436
|
}
|
|
@@ -1414,4 +1452,4 @@ if (!Object.getOwnPropertyDescriptor(TransformNode.prototype, "physicsBody")) {
|
|
|
1414
1452
|
Object.defineProperty(TransformNode.prototype, "physicsBody", _MissingSideEffectProperty("TransformNode", "physicsBody"));
|
|
1415
1453
|
}
|
|
1416
1454
|
// #endregion GENERATED_SIDE_EFFECT_STUBS
|
|
1417
|
-
//# sourceMappingURL=transformNode.pure.js.map
|
|
1455
|
+
//# sourceMappingURL=transformNode.pure.js.map
|