@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.
Files changed (124) hide show
  1. package/Audio/audioSceneComponent.pure.js +17 -9
  2. package/Bones/bone.pure.js +39 -29
  3. package/Cameras/arcRotateCamera.pure.d.ts +0 -8
  4. package/Cameras/arcRotateCamera.pure.js +0 -12
  5. package/Cameras/arcRotateCamera.pure.js.map +1 -1
  6. package/Cameras/inputMapper.d.ts +29 -8
  7. package/Cameras/inputMapper.js +63 -10
  8. package/Cameras/inputMapper.js.map +1 -1
  9. package/Cameras/targetCamera.pure.js +40 -27
  10. package/Culling/Helper/transformFeedbackBoundingHelper.pure.js +17 -23
  11. package/Engines/abstractEngine.pure.js +11 -4
  12. package/Engines/abstractEngine.pure.js.map +1 -1
  13. package/Engines/engine.pure.d.ts +23 -0
  14. package/Engines/engine.pure.js +96 -1
  15. package/Engines/engine.pure.js.map +1 -1
  16. package/Engines/nativeEngine.pure.d.ts +4 -0
  17. package/Engines/nativeEngine.pure.js +6 -0
  18. package/Engines/nativeEngine.pure.js.map +1 -1
  19. package/Engines/thinEngine.pure.js +234 -280
  20. package/Engines/thinNativeEngine.pure.d.ts +21 -0
  21. package/Engines/thinNativeEngine.pure.js +119 -4
  22. package/Engines/thinNativeEngine.pure.js.map +1 -1
  23. package/Engines/webgpuEngine.pure.d.ts +21 -0
  24. package/Engines/webgpuEngine.pure.js +46 -1
  25. package/Engines/webgpuEngine.pure.js.map +1 -1
  26. package/Materials/Background/backgroundMaterial.pure.js +5 -4
  27. package/Materials/Background/backgroundMaterial.pure.js.map +1 -1
  28. package/Materials/GaussianSplatting/gaussianSplattingDebugMaterialPlugin.d.ts +5 -0
  29. package/Materials/GaussianSplatting/gaussianSplattingDebugMaterialPlugin.js +8 -0
  30. package/Materials/GaussianSplatting/gaussianSplattingDebugMaterialPlugin.js.map +1 -0
  31. package/Materials/GaussianSplatting/gaussianSplattingDebugMaterialPlugin.pure.d.ts +278 -0
  32. package/Materials/GaussianSplatting/gaussianSplattingDebugMaterialPlugin.pure.js +718 -0
  33. package/Materials/GaussianSplatting/gaussianSplattingDebugMaterialPlugin.pure.js.map +1 -0
  34. package/Materials/GaussianSplatting/pure.d.ts +1 -0
  35. package/Materials/GaussianSplatting/pure.js +1 -0
  36. package/Materials/GaussianSplatting/pure.js.map +1 -1
  37. package/Materials/Node/Blocks/Dual/imageSourceBlock.pure.js +10 -14
  38. package/Materials/Node/Blocks/Dual/index.d.ts +0 -14
  39. package/Materials/Node/Blocks/Dual/index.js +0 -18
  40. package/Materials/Node/Blocks/Dual/index.js.map +1 -1
  41. package/Materials/Node/Blocks/Dual/textureBlock.pure.js +660 -662
  42. package/Materials/Node/Blocks/Fragment/index.d.ts +0 -10
  43. package/Materials/Node/Blocks/Fragment/index.js +0 -13
  44. package/Materials/Node/Blocks/Fragment/index.js.map +1 -1
  45. package/Materials/Node/Blocks/GaussianSplatting/index.d.ts +12 -0
  46. package/Materials/Node/Blocks/GaussianSplatting/index.js +14 -1
  47. package/Materials/Node/Blocks/GaussianSplatting/index.js.map +1 -1
  48. package/Materials/Node/Blocks/Vertex/index.d.ts +0 -8
  49. package/Materials/Node/Blocks/Vertex/index.js +0 -10
  50. package/Materials/Node/Blocks/Vertex/index.js.map +1 -1
  51. package/Materials/PBR/openpbrMaterial.pure.js +6 -5
  52. package/Materials/PBR/openpbrMaterial.pure.js.map +1 -1
  53. package/Materials/PBR/pbrBaseMaterial.pure.js +6 -5
  54. package/Materials/PBR/pbrBaseMaterial.pure.js.map +1 -1
  55. package/Materials/Textures/index.d.ts +1 -0
  56. package/Materials/Textures/index.js +1 -0
  57. package/Materials/Textures/index.js.map +1 -1
  58. package/Materials/Textures/internalTexture.d.ts +11 -1
  59. package/Materials/Textures/internalTexture.js +23 -0
  60. package/Materials/Textures/internalTexture.js.map +1 -1
  61. package/Materials/Textures/texture.pure.js +157 -255
  62. package/Materials/index.d.ts +30 -0
  63. package/Materials/index.js +31 -0
  64. package/Materials/index.js.map +1 -1
  65. package/Materials/material.pure.js +128 -69
  66. package/Materials/pure.d.ts +1 -0
  67. package/Materials/pure.js +1 -0
  68. package/Materials/pure.js.map +1 -1
  69. package/Materials/standardMaterial.pure.js +6 -5
  70. package/Materials/standardMaterial.pure.js.map +1 -1
  71. package/Maths/math.color.pure.js +55 -47
  72. package/Maths/math.vector.pure.js +118 -242
  73. package/Meshes/GaussianSplatting/gaussianSplattingDebugger.d.ts +7 -0
  74. package/Meshes/GaussianSplatting/gaussianSplattingDebugger.js +8 -0
  75. package/Meshes/GaussianSplatting/gaussianSplattingDebugger.js.map +1 -0
  76. package/Meshes/GaussianSplatting/gaussianSplattingDebugger.pure.d.ts +147 -0
  77. package/Meshes/GaussianSplatting/gaussianSplattingDebugger.pure.js +257 -0
  78. package/Meshes/GaussianSplatting/gaussianSplattingDebugger.pure.js.map +1 -0
  79. package/Meshes/GaussianSplatting/gaussianSplattingMeshBase.pure.d.ts +11 -0
  80. package/Meshes/GaussianSplatting/gaussianSplattingMeshBase.pure.js +31 -0
  81. package/Meshes/GaussianSplatting/gaussianSplattingMeshBase.pure.js.map +1 -1
  82. package/Meshes/GaussianSplatting/pure.d.ts +1 -0
  83. package/Meshes/GaussianSplatting/pure.js +1 -0
  84. package/Meshes/GaussianSplatting/pure.js.map +1 -1
  85. package/Meshes/GreasedLine/greasedLineMesh.pure.js +9 -14
  86. package/Meshes/GreasedLine/greasedLineRibbonMesh.pure.js +26 -27
  87. package/Meshes/index.d.ts +1 -0
  88. package/Meshes/index.js +1 -0
  89. package/Meshes/index.js.map +1 -1
  90. package/Meshes/meshSimplification.common.d.ts +53 -0
  91. package/Meshes/meshSimplification.common.js +34 -0
  92. package/Meshes/meshSimplification.common.js.map +1 -0
  93. package/Meshes/meshSimplification.d.ts +3 -53
  94. package/Meshes/meshSimplification.js +1 -33
  95. package/Meshes/meshSimplification.js.map +1 -1
  96. package/Meshes/meshSimplificationSceneComponent.pure.js.map +1 -1
  97. package/Meshes/meshSimplificationSceneComponent.types.d.ts +2 -1
  98. package/Meshes/meshSimplificationSceneComponent.types.js.map +1 -1
  99. package/Meshes/pure.d.ts +1 -0
  100. package/Meshes/pure.js +1 -0
  101. package/Meshes/pure.js.map +1 -1
  102. package/Meshes/transformNode.pure.js +82 -44
  103. package/Misc/tools.pure.js +124 -186
  104. package/Misc/tools.pure.js.map +1 -1
  105. package/Physics/v1/physicsImpostor.pure.js +43 -37
  106. package/Shaders/ShadersInclude/gaussianSplatting.js +33 -10
  107. package/Shaders/ShadersInclude/gaussianSplatting.js.map +1 -1
  108. package/Shaders/gaussianSplatting.vertex.js +20 -1
  109. package/Shaders/gaussianSplatting.vertex.js.map +1 -1
  110. package/Shaders/picking.fragment.js +4 -1
  111. package/Shaders/picking.fragment.js.map +1 -1
  112. package/ShadersWGSL/ShadersInclude/gaussianSplatting.js +33 -10
  113. package/ShadersWGSL/ShadersInclude/gaussianSplatting.js.map +1 -1
  114. package/ShadersWGSL/gaussianSplatting.vertex.js +21 -2
  115. package/ShadersWGSL/gaussianSplatting.vertex.js.map +1 -1
  116. package/SmartAssets/index.d.ts +2 -2
  117. package/SmartAssets/index.js +2 -1
  118. package/SmartAssets/index.js.map +1 -1
  119. package/SmartAssets/pure.d.ts +1 -1
  120. package/SmartAssets/pure.js +2 -1
  121. package/SmartAssets/pure.js.map +1 -1
  122. package/SmartAssets/smartAssetManager.js +9 -0
  123. package/SmartAssets/smartAssetManager.js.map +1 -1
  124. package/package.json +3 -1
@@ -239,7 +239,8 @@ export class AudioSceneComponent {
239
239
  // Set the listener position
240
240
  audioEngine.audioContext.listener.setPosition(position.x || 0, position.y || 0, position.z || 0);
241
241
  // Check if there is a listening camera
242
- } else if (listeningCamera) {
242
+ }
243
+ else if (listeningCamera) {
243
244
  // Set the listener position to the listening camera global position
244
245
  if (!this._cachedCameraPosition.equals(listeningCamera.globalPosition)) {
245
246
  this._cachedCameraPosition.copyFrom(listeningCamera.globalPosition);
@@ -257,7 +258,8 @@ export class AudioSceneComponent {
257
258
  const rotation = this.audioListenerRotationProvider();
258
259
  audioEngine.audioContext.listener.setOrientation(rotation.x || 0, rotation.y || 0, rotation.z || 0, 0, 1, 0);
259
260
  // Check if there is a listening camera
260
- } else if (listeningCamera) {
261
+ }
262
+ else if (listeningCamera) {
261
263
  // for VR cameras
262
264
  if (listeningCamera.rigCameras && listeningCamera.rigCameras.length > 0) {
263
265
  listeningCamera = listeningCamera.rigCameras[0];
@@ -327,10 +329,12 @@ export function RegisterAudioSceneComponent(soundClass) {
327
329
  loadedSound = soundClass.Parse(parsedSound, scene, rootUrl);
328
330
  loadedSounds[parsedSound.url] = loadedSound;
329
331
  container.sounds.push(loadedSound);
330
- } else {
332
+ }
333
+ else {
331
334
  container.sounds.push(soundClass.Parse(parsedSound, scene, rootUrl, loadedSounds[parsedSound.url]));
332
335
  }
333
- } else {
336
+ }
337
+ else {
334
338
  container.sounds.push(new soundClass(parsedSound.name, null, scene));
335
339
  }
336
340
  }
@@ -386,7 +390,8 @@ export function RegisterAudioSceneComponent(soundClass) {
386
390
  }
387
391
  if (value) {
388
392
  compo.enableAudio();
389
- } else {
393
+ }
394
+ else {
390
395
  compo.disableAudio();
391
396
  }
392
397
  },
@@ -410,7 +415,8 @@ export function RegisterAudioSceneComponent(soundClass) {
410
415
  }
411
416
  if (value) {
412
417
  compo.switchAudioModeForHeadphones();
413
- } else {
418
+ }
419
+ else {
414
420
  compo.switchAudioModeForNormalSpeakers();
415
421
  }
416
422
  },
@@ -434,7 +440,8 @@ export function RegisterAudioSceneComponent(soundClass) {
434
440
  }
435
441
  if (value && typeof value !== "function") {
436
442
  throw new Error("The value passed to [Scene.audioListenerPositionProvider] must be a function that returns a Vector3");
437
- } else {
443
+ }
444
+ else {
438
445
  compo.audioListenerPositionProvider = value;
439
446
  }
440
447
  },
@@ -458,7 +465,8 @@ export function RegisterAudioSceneComponent(soundClass) {
458
465
  }
459
466
  if (value && typeof value !== "function") {
460
467
  throw new Error("The value passed to [Scene.audioListenerRotationProvider] must be a function that returns a Vector3");
461
- } else {
468
+ }
469
+ else {
462
470
  compo.audioListenerRotationProvider = value;
463
471
  }
464
472
  },
@@ -493,4 +501,4 @@ export function RegisterAudioSceneComponent(soundClass) {
493
501
  }
494
502
  };
495
503
  }
496
- //# sourceMappingURL=audioSceneComponent.pure.js.map
504
+ //# sourceMappingURL=audioSceneComponent.pure.js.map
@@ -34,17 +34,10 @@ export class Bone extends Node {
34
34
  * @param index defines index of the bone in the hierarchy (default: null)
35
35
  */
36
36
  constructor(
37
- /**
38
- * defines the bone name
39
- */
40
- name,
41
- skeleton,
42
- parentBone = null,
43
- localMatrix = null,
44
- restMatrix = null,
45
- bindMatrix = null,
46
- index = null
47
- ) {
37
+ /**
38
+ * defines the bone name
39
+ */
40
+ name, skeleton, parentBone = null, localMatrix = null, restMatrix = null, bindMatrix = null, index = null) {
48
41
  super(name, skeleton.getScene(), false);
49
42
  this.name = name;
50
43
  /**
@@ -253,7 +246,8 @@ export class Bone extends Node {
253
246
  this._linkedTransformNode.rotationQuaternion = this._linkedTransformNode.rotationQuaternion ?? Quaternion.Identity();
254
247
  this._linkedTransformNode.rotationQuaternion.copyFrom(localRotation);
255
248
  this._linkedTransformNode.scaling.copyFrom(localScaling);
256
- } else {
249
+ }
250
+ else {
257
251
  this._matrix = this._restMatrix;
258
252
  }
259
253
  }
@@ -385,7 +379,8 @@ export class Bone extends Node {
385
379
  }
386
380
  if (updateLocalMatrix) {
387
381
  this._matrix = bindMatrix;
388
- } else {
382
+ }
383
+ else {
389
384
  this.markAsDirty();
390
385
  }
391
386
  }
@@ -398,7 +393,8 @@ export class Bone extends Node {
398
393
  }
399
394
  if (this.parent) {
400
395
  bindMatrix.multiplyToRef(this.parent._absoluteBindMatrix, this._absoluteBindMatrix);
401
- } else {
396
+ }
397
+ else {
402
398
  this._absoluteBindMatrix.copyFrom(bindMatrix);
403
399
  }
404
400
  this._absoluteBindMatrix.invertToRef(this._absoluteInverseBindMatrix);
@@ -435,10 +431,12 @@ export class Bone extends Node {
435
431
  lm.addAtIndex(12, vec.x);
436
432
  lm.addAtIndex(13, vec.y);
437
433
  lm.addAtIndex(14, vec.z);
438
- } else {
434
+ }
435
+ else {
439
436
  lm.setTranslationFromFloats(vec.x, vec.y, vec.z);
440
437
  }
441
- } else {
438
+ }
439
+ else {
442
440
  const tmat = Bone._TmpMats[0];
443
441
  const tvec = Bone._TmpVecs[0];
444
442
  if (this.parent) {
@@ -446,7 +444,8 @@ export class Bone extends Node {
446
444
  if (tNode) {
447
445
  tmat.multiplyToRef(tNode.getWorldMatrix(), tmat);
448
446
  }
449
- } else {
447
+ }
448
+ else {
450
449
  Matrix.IdentityToRef(tmat);
451
450
  }
452
451
  if (translationMode) {
@@ -458,7 +457,8 @@ export class Bone extends Node {
458
457
  lm.addAtIndex(12, tvec.x);
459
458
  lm.addAtIndex(13, tvec.y);
460
459
  lm.addAtIndex(14, tvec.z);
461
- } else {
460
+ }
461
+ else {
462
462
  lm.setTranslationFromFloats(tvec.x, tvec.y, tvec.z);
463
463
  }
464
464
  }
@@ -670,7 +670,8 @@ export class Bone extends Node {
670
670
  if (tNode) {
671
671
  parentScale.copyFrom(tNode.getWorldMatrix());
672
672
  parent.getAbsoluteMatrix().multiplyToRef(parentScale, parentScale);
673
- } else {
673
+ }
674
+ else {
674
675
  parentScale.copyFrom(parent.getAbsoluteMatrix());
675
676
  }
676
677
  parentScaleInv.copyFrom(parentScale);
@@ -678,7 +679,8 @@ export class Bone extends Node {
678
679
  lmat.multiplyToRef(parentScale, lmat);
679
680
  lmat.multiplyToRef(rmat, lmat);
680
681
  lmat.multiplyToRef(parentScaleInv, lmat);
681
- } else {
682
+ }
683
+ else {
682
684
  if (space == 1 /* Space.WORLD */ && tNode) {
683
685
  parentScale.copyFrom(tNode.getWorldMatrix());
684
686
  parentScaleInv.copyFrom(parentScale);
@@ -686,7 +688,8 @@ export class Bone extends Node {
686
688
  lmat.multiplyToRef(parentScale, lmat);
687
689
  lmat.multiplyToRef(rmat, lmat);
688
690
  lmat.multiplyToRef(parentScaleInv, lmat);
689
- } else {
691
+ }
692
+ else {
690
693
  lmat.multiplyToRef(rmat, lmat);
691
694
  }
692
695
  }
@@ -699,7 +702,8 @@ export class Bone extends Node {
699
702
  if (tNode) {
700
703
  rotMatInv.multiplyToRef(tNode.getWorldMatrix(), rotMatInv);
701
704
  Matrix.ScalingToRef(tNode.scaling.x, tNode.scaling.y, tNode.scaling.z, scaleMatrix);
702
- } else {
705
+ }
706
+ else {
703
707
  Matrix.IdentityToRef(scaleMatrix);
704
708
  }
705
709
  rotMatInv.invert();
@@ -735,7 +739,8 @@ export class Bone extends Node {
735
739
  result.x = lm.m[12];
736
740
  result.y = lm.m[13];
737
741
  result.z = lm.m[14];
738
- } else {
742
+ }
743
+ else {
739
744
  const tmat = Bone._TmpMats[0].copyFrom(this.getAbsoluteMatrix());
740
745
  if (tNode) {
741
746
  tmat.multiplyToRef(tNode.getWorldMatrix(), tmat);
@@ -770,7 +775,8 @@ export class Bone extends Node {
770
775
  this._compose();
771
776
  if (this.parent) {
772
777
  this._localMatrix.multiplyToRef(this.parent._absoluteMatrix, this._absoluteMatrix);
773
- } else {
778
+ }
779
+ else {
774
780
  this._absoluteMatrix.copyFrom(this._localMatrix);
775
781
  const poseMatrix = this._skeleton.getPoseMatrix();
776
782
  if (poseMatrix) {
@@ -858,12 +864,14 @@ export class Bone extends Node {
858
864
  if (space == 0 /* Space.LOCAL */) {
859
865
  this._decompose();
860
866
  result.copyFrom(this._localRotation);
861
- } else {
867
+ }
868
+ else {
862
869
  const mat = Bone._TmpMats[0];
863
870
  const amat = this.getAbsoluteMatrix();
864
871
  if (tNode) {
865
872
  amat.multiplyToRef(tNode.getWorldMatrix(), mat);
866
- } else {
873
+ }
874
+ else {
867
875
  mat.copyFrom(amat);
868
876
  }
869
877
  mat.multiplyAtIndex(0, this._scalingDeterminant);
@@ -892,12 +900,14 @@ export class Bone extends Node {
892
900
  getRotationMatrixToRef(space = 0 /* Space.LOCAL */, tNode, result) {
893
901
  if (space == 0 /* Space.LOCAL */) {
894
902
  this.getLocalMatrix().getRotationMatrixToRef(result);
895
- } else {
903
+ }
904
+ else {
896
905
  const mat = Bone._TmpMats[0];
897
906
  const amat = this.getAbsoluteMatrix();
898
907
  if (tNode) {
899
908
  amat.multiplyToRef(tNode.getWorldMatrix(), mat);
900
- } else {
909
+ }
910
+ else {
901
911
  mat.copyFrom(amat);
902
912
  }
903
913
  mat.multiplyAtIndex(0, this._scalingDeterminant);
@@ -987,4 +997,4 @@ Bone._TmpMats = /*#__PURE__*/ BuildArray(5, Matrix.Identity);
987
997
  import { _MissingSideEffect } from "../Misc/devTools.js";
988
998
  (_a = Bone.prototype).copyAnimationRange ?? (_a.copyAnimationRange = _MissingSideEffect("Bone", "copyAnimationRange"));
989
999
  // #endregion GENERATED_SIDE_EFFECT_STUBS
990
- //# sourceMappingURL=bone.pure.js.map
1000
+ //# sourceMappingURL=bone.pure.js.map
@@ -325,14 +325,6 @@ export declare class ArcRotateCamera extends TargetCamera {
325
325
  */
326
326
  get _panningMouseButton(): number;
327
327
  set _panningMouseButton(value: number);
328
- /**
329
- * @deprecated The movement system is always active. This setter is a no-op kept for backward compatibility.
330
- */
331
- set useMovementSystem(_value: boolean);
332
- /**
333
- * @deprecated The movement system is always active. Always returns true.
334
- */
335
- get useMovementSystem(): boolean;
336
328
  /** @internal */
337
329
  _reset: () => void;
338
330
  /**
@@ -485,18 +485,6 @@ export class ArcRotateCamera extends TargetCamera {
485
485
  entry.button = value;
486
486
  }
487
487
  }
488
- /**
489
- * @deprecated The movement system is always active. This setter is a no-op kept for backward compatibility.
490
- */
491
- set useMovementSystem(_value) {
492
- // no-op: movement system is always active
493
- }
494
- /**
495
- * @deprecated The movement system is always active. Always returns true.
496
- */
497
- get useMovementSystem() {
498
- return true;
499
- }
500
488
  /**
501
489
  * If true, indicates the camera is currently interpolating to a new pose.
502
490
  */