@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
@@ -32,19 +32,18 @@ export class Color3 {
32
32
  * @param b defines the blue component (between 0 and 1, default is 0)
33
33
  */
34
34
  constructor(
35
- /**
36
- * [0] Defines the red component (between 0 and 1, default is 0)
37
- */
38
- r = 0,
39
- /**
40
- * [0] Defines the green component (between 0 and 1, default is 0)
41
- */
42
- g = 0,
43
- /**
44
- * [0] Defines the blue component (between 0 and 1, default is 0)
45
- */
46
- b = 0
47
- ) {
35
+ /**
36
+ * [0] Defines the red component (between 0 and 1, default is 0)
37
+ */
38
+ r = 0,
39
+ /**
40
+ * [0] Defines the green component (between 0 and 1, default is 0)
41
+ */
42
+ g = 0,
43
+ /**
44
+ * [0] Defines the blue component (between 0 and 1, default is 0)
45
+ */
46
+ b = 0) {
48
47
  this.r = r;
49
48
  this.g = g;
50
49
  this.b = b;
@@ -568,9 +567,11 @@ export class Color3 {
568
567
  if (g < b) {
569
568
  h += 6;
570
569
  }
571
- } else if (max == g) {
570
+ }
571
+ else if (max == g) {
572
572
  h = (b - r) / dm + 2;
573
- } else if (max == b) {
573
+ }
574
+ else if (max == b) {
574
575
  h = (r - g) / dm + 4;
575
576
  }
576
577
  h *= 60;
@@ -601,7 +602,8 @@ export class Color3 {
601
602
  convertedColor.r = ColorChannelToLinearSpaceExact(this.r);
602
603
  convertedColor.g = ColorChannelToLinearSpaceExact(this.g);
603
604
  convertedColor.b = ColorChannelToLinearSpaceExact(this.b);
604
- } else {
605
+ }
606
+ else {
605
607
  convertedColor.r = ColorChannelToLinearSpace(this.r);
606
608
  convertedColor.g = ColorChannelToLinearSpace(this.g);
607
609
  convertedColor.b = ColorChannelToLinearSpace(this.b);
@@ -629,7 +631,8 @@ export class Color3 {
629
631
  convertedColor.r = ColorChannelToGammaSpaceExact(this.r);
630
632
  convertedColor.g = ColorChannelToGammaSpaceExact(this.g);
631
633
  convertedColor.b = ColorChannelToGammaSpaceExact(this.b);
632
- } else {
634
+ }
635
+ else {
633
636
  convertedColor.r = ColorChannelToGammaSpace(this.r);
634
637
  convertedColor.g = ColorChannelToGammaSpace(this.g);
635
638
  convertedColor.b = ColorChannelToGammaSpace(this.b);
@@ -654,19 +657,24 @@ export class Color3 {
654
657
  if (h >= 0 && h <= 1) {
655
658
  r = chroma;
656
659
  g = x;
657
- } else if (h >= 1 && h <= 2) {
660
+ }
661
+ else if (h >= 1 && h <= 2) {
658
662
  r = x;
659
663
  g = chroma;
660
- } else if (h >= 2 && h <= 3) {
664
+ }
665
+ else if (h >= 2 && h <= 3) {
661
666
  g = chroma;
662
667
  b = x;
663
- } else if (h >= 3 && h <= 4) {
668
+ }
669
+ else if (h >= 3 && h <= 4) {
664
670
  g = x;
665
671
  b = chroma;
666
- } else if (h >= 4 && h <= 5) {
672
+ }
673
+ else if (h >= 4 && h <= 5) {
667
674
  r = x;
668
675
  b = chroma;
669
- } else if (h >= 5 && h <= 6) {
676
+ }
677
+ else if (h >= 5 && h <= 6) {
670
678
  r = chroma;
671
679
  b = x;
672
680
  }
@@ -906,23 +914,22 @@ export class Color4 {
906
914
  * @param a defines the alpha component (between 0 and 1, default is 1)
907
915
  */
908
916
  constructor(
909
- /**
910
- * [0] Defines the red component (between 0 and 1, default is 0)
911
- */
912
- r = 0,
913
- /**
914
- * [0] Defines the green component (between 0 and 1, default is 0)
915
- */
916
- g = 0,
917
- /**
918
- * [0] Defines the blue component (between 0 and 1, default is 0)
919
- */
920
- b = 0,
921
- /**
922
- * [1] Defines the alpha component (between 0 and 1, default is 1)
923
- */
924
- a = 1
925
- ) {
917
+ /**
918
+ * [0] Defines the red component (between 0 and 1, default is 0)
919
+ */
920
+ r = 0,
921
+ /**
922
+ * [0] Defines the green component (between 0 and 1, default is 0)
923
+ */
924
+ g = 0,
925
+ /**
926
+ * [0] Defines the blue component (between 0 and 1, default is 0)
927
+ */
928
+ b = 0,
929
+ /**
930
+ * [1] Defines the alpha component (between 0 and 1, default is 1)
931
+ */
932
+ a = 1) {
926
933
  this.r = r;
927
934
  this.g = g;
928
935
  this.b = b;
@@ -1313,12 +1320,10 @@ export class Color4 {
1313
1320
  * @returns true if they are equal
1314
1321
  */
1315
1322
  equalsWithEpsilon(otherColor, epsilon = Epsilon) {
1316
- return (
1317
- WithinEpsilon(this.r, otherColor.r, epsilon) &&
1323
+ return (WithinEpsilon(this.r, otherColor.r, epsilon) &&
1318
1324
  WithinEpsilon(this.g, otherColor.g, epsilon) &&
1319
1325
  WithinEpsilon(this.b, otherColor.b, epsilon) &&
1320
- WithinEpsilon(this.a, otherColor.a, epsilon)
1321
- );
1326
+ WithinEpsilon(this.a, otherColor.a, epsilon));
1322
1327
  }
1323
1328
  /**
1324
1329
  * Boolean : True if the given floats are strictly equal to the current Color4 coordinates.
@@ -1472,7 +1477,8 @@ export class Color4 {
1472
1477
  convertedColor.r = ColorChannelToLinearSpaceExact(this.r);
1473
1478
  convertedColor.g = ColorChannelToLinearSpaceExact(this.g);
1474
1479
  convertedColor.b = ColorChannelToLinearSpaceExact(this.b);
1475
- } else {
1480
+ }
1481
+ else {
1476
1482
  convertedColor.r = ColorChannelToLinearSpace(this.r);
1477
1483
  convertedColor.g = ColorChannelToLinearSpace(this.g);
1478
1484
  convertedColor.b = ColorChannelToLinearSpace(this.b);
@@ -1501,7 +1507,8 @@ export class Color4 {
1501
1507
  convertedColor.r = ColorChannelToGammaSpaceExact(this.r);
1502
1508
  convertedColor.g = ColorChannelToGammaSpaceExact(this.g);
1503
1509
  convertedColor.b = ColorChannelToGammaSpaceExact(this.b);
1504
- } else {
1510
+ }
1511
+ else {
1505
1512
  convertedColor.r = ColorChannelToGammaSpace(this.r);
1506
1513
  convertedColor.g = ColorChannelToGammaSpace(this.g);
1507
1514
  convertedColor.b = ColorChannelToGammaSpace(this.b);
@@ -1682,7 +1689,8 @@ Color4._V8PerformanceHack = /*#__PURE__*/ new Color4(0.5, 0.5, 0.5, 0.5);
1682
1689
  /**
1683
1690
  * @internal
1684
1691
  */
1685
- export class TmpColors {}
1692
+ export class TmpColors {
1693
+ }
1686
1694
  TmpColors.Color3 = /*#__PURE__*/ BuildArray(3, Color3.Black);
1687
1695
  TmpColors.Color4 = /*#__PURE__*/ BuildArray(3, () => new Color4(0, 0, 0, 0));
1688
1696
  let _Registered = false;
@@ -1706,4 +1714,4 @@ export function RegisterMathColor() {
1706
1714
  RegisterClass("BABYLON.Color3", Color3);
1707
1715
  RegisterClass("BABYLON.Color4", Color4);
1708
1716
  }
1709
- //# sourceMappingURL=math.color.pure.js.map
1717
+ //# sourceMappingURL=math.color.pure.js.map