@babylonjs/core 7.11.2 → 7.11.4

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 (125) hide show
  1. package/Animations/animatable.d.ts +10 -10
  2. package/Animations/animatable.js +5 -5
  3. package/Animations/animatable.js.map +1 -1
  4. package/Animations/animationGroupMask.d.ts +2 -2
  5. package/Animations/animationGroupMask.js +1 -1
  6. package/Animations/animationGroupMask.js.map +1 -1
  7. package/Animations/easing.d.ts +2 -2
  8. package/Animations/easing.js +1 -1
  9. package/Animations/easing.js.map +1 -1
  10. package/Behaviors/Meshes/attachToBoxBehavior.d.ts +3 -3
  11. package/Behaviors/Meshes/attachToBoxBehavior.js +3 -3
  12. package/Behaviors/Meshes/attachToBoxBehavior.js.map +1 -1
  13. package/Cameras/Inputs/freeCameraMouseInput.d.ts +2 -2
  14. package/Cameras/Inputs/freeCameraMouseInput.js +1 -1
  15. package/Cameras/Inputs/freeCameraMouseInput.js.map +1 -1
  16. package/Cameras/Inputs/freeCameraTouchInput.d.ts +2 -2
  17. package/Cameras/Inputs/freeCameraTouchInput.js +1 -1
  18. package/Cameras/Inputs/freeCameraTouchInput.js.map +1 -1
  19. package/Compute/computeEffect.js +21 -3
  20. package/Compute/computeEffect.js.map +1 -1
  21. package/Culling/Helper/IBoundingInfoHelperPlatform.d.ts +8 -0
  22. package/Culling/Helper/IBoundingInfoHelperPlatform.js +2 -0
  23. package/Culling/Helper/IBoundingInfoHelperPlatform.js.map +1 -0
  24. package/Culling/Helper/boundingInfoHelper.d.ts +32 -0
  25. package/Culling/Helper/boundingInfoHelper.js +48 -0
  26. package/Culling/Helper/boundingInfoHelper.js.map +1 -0
  27. package/Culling/Helper/computeShaderBoundingHelper.d.ts +34 -0
  28. package/Culling/Helper/computeShaderBoundingHelper.js +209 -0
  29. package/Culling/Helper/computeShaderBoundingHelper.js.map +1 -0
  30. package/Culling/Helper/transformFeedbackBoundingHelper.d.ts +21 -0
  31. package/Culling/Helper/transformFeedbackBoundingHelper.js +197 -0
  32. package/Culling/Helper/transformFeedbackBoundingHelper.js.map +1 -0
  33. package/Culling/Octrees/octree.d.ts +2 -2
  34. package/Culling/Octrees/octree.js +1 -1
  35. package/Culling/Octrees/octree.js.map +1 -1
  36. package/Culling/index.d.ts +3 -0
  37. package/Culling/index.js +3 -0
  38. package/Culling/index.js.map +1 -1
  39. package/Culling/ray.d.ts +4 -4
  40. package/Culling/ray.js +2 -2
  41. package/Culling/ray.js.map +1 -1
  42. package/Debug/skeletonViewer.d.ts +6 -6
  43. package/Debug/skeletonViewer.js +3 -3
  44. package/Debug/skeletonViewer.js.map +1 -1
  45. package/DeviceInput/InputDevices/deviceSource.d.ts +2 -2
  46. package/DeviceInput/InputDevices/deviceSource.js +1 -1
  47. package/DeviceInput/InputDevices/deviceSource.js.map +1 -1
  48. package/Engines/Extensions/engine.transformFeedback.d.ts +5 -0
  49. package/Engines/Extensions/engine.transformFeedback.js +3 -0
  50. package/Engines/Extensions/engine.transformFeedback.js.map +1 -1
  51. package/Engines/Processors/shaderProcessingOptions.d.ts +1 -1
  52. package/Engines/Processors/shaderProcessingOptions.js.map +1 -1
  53. package/Engines/Processors/shaderProcessor.js +2 -2
  54. package/Engines/Processors/shaderProcessor.js.map +1 -1
  55. package/Engines/abstractEngine.js +2 -2
  56. package/Engines/abstractEngine.js.map +1 -1
  57. package/Engines/nativeEngine.d.ts +7 -0
  58. package/Engines/nativeEngine.js +4 -1
  59. package/Engines/nativeEngine.js.map +1 -1
  60. package/Maths/math.color.d.ts +14 -14
  61. package/Maths/math.color.js +7 -7
  62. package/Maths/math.color.js.map +1 -1
  63. package/Maths/math.isovector.d.ts +4 -4
  64. package/Maths/math.isovector.js +2 -2
  65. package/Maths/math.isovector.js.map +1 -1
  66. package/Maths/math.vector.d.ts +12 -12
  67. package/Maths/math.vector.js +6 -6
  68. package/Maths/math.vector.js.map +1 -1
  69. package/Maths/math.vertexFormat.d.ts +10 -10
  70. package/Maths/math.vertexFormat.js +5 -5
  71. package/Maths/math.vertexFormat.js.map +1 -1
  72. package/Meshes/abstractMesh.d.ts +7 -0
  73. package/Meshes/abstractMesh.js +17 -0
  74. package/Meshes/abstractMesh.js.map +1 -1
  75. package/Meshes/mesh.d.ts +4 -0
  76. package/Meshes/mesh.js +13 -4
  77. package/Meshes/mesh.js.map +1 -1
  78. package/Misc/observable.d.ts +6 -6
  79. package/Misc/observable.js +4 -4
  80. package/Misc/observable.js.map +1 -1
  81. package/Misc/sceneOptimizer.d.ts +3 -3
  82. package/Misc/sceneOptimizer.js +2 -2
  83. package/Misc/sceneOptimizer.js.map +1 -1
  84. package/Morph/morphTargetManager.d.ts +8 -4
  85. package/Morph/morphTargetManager.js +6 -3
  86. package/Morph/morphTargetManager.js.map +1 -1
  87. package/Particles/EmitterTypes/coneParticleEmitter.d.ts +2 -2
  88. package/Particles/EmitterTypes/coneParticleEmitter.js +1 -1
  89. package/Particles/EmitterTypes/coneParticleEmitter.js.map +1 -1
  90. package/Particles/EmitterTypes/cylinderParticleEmitter.d.ts +8 -8
  91. package/Particles/EmitterTypes/cylinderParticleEmitter.js +4 -4
  92. package/Particles/EmitterTypes/cylinderParticleEmitter.js.map +1 -1
  93. package/Particles/EmitterTypes/hemisphericParticleEmitter.d.ts +6 -6
  94. package/Particles/EmitterTypes/hemisphericParticleEmitter.js +3 -3
  95. package/Particles/EmitterTypes/hemisphericParticleEmitter.js.map +1 -1
  96. package/Particles/EmitterTypes/sphereParticleEmitter.d.ts +6 -6
  97. package/Particles/EmitterTypes/sphereParticleEmitter.js +3 -3
  98. package/Particles/EmitterTypes/sphereParticleEmitter.js.map +1 -1
  99. package/Particles/pointsCloudSystem.d.ts +0 -1
  100. package/Particles/pointsCloudSystem.js +0 -1
  101. package/Particles/pointsCloudSystem.js.map +1 -1
  102. package/Shaders/gpuTransform.fragment.d.ts +5 -0
  103. package/Shaders/gpuTransform.fragment.js +11 -0
  104. package/Shaders/gpuTransform.fragment.js.map +1 -0
  105. package/Shaders/gpuTransform.vertex.d.ts +13 -0
  106. package/Shaders/gpuTransform.vertex.js +33 -0
  107. package/Shaders/gpuTransform.vertex.js.map +1 -0
  108. package/ShadersWGSL/boundingInfo.compute.d.ts +5 -0
  109. package/ShadersWGSL/boundingInfo.compute.js +80 -0
  110. package/ShadersWGSL/boundingInfo.compute.js.map +1 -0
  111. package/XR/features/WebXRBackgroundRemover.d.ts +2 -2
  112. package/XR/features/WebXRBackgroundRemover.js +1 -1
  113. package/XR/features/WebXRBackgroundRemover.js.map +1 -1
  114. package/XR/features/WebXRHitTest.d.ts +2 -2
  115. package/XR/features/WebXRHitTest.js +1 -1
  116. package/XR/features/WebXRHitTest.js.map +1 -1
  117. package/XR/features/WebXRHitTestLegacy.d.ts +2 -2
  118. package/XR/features/WebXRHitTestLegacy.js +1 -1
  119. package/XR/features/WebXRHitTestLegacy.js.map +1 -1
  120. package/XR/features/WebXRRawCameraAccess.js +0 -2
  121. package/XR/features/WebXRRawCameraAccess.js.map +1 -1
  122. package/XR/motionController/webXRAbstractMotionController.d.ts +2 -0
  123. package/XR/motionController/webXRAbstractMotionController.js +1 -0
  124. package/XR/motionController/webXRAbstractMotionController.js.map +1 -1
  125. package/package.json +1 -1
@@ -3,9 +3,9 @@ import { Vector3, Vector2 } from "./math.vector";
3
3
  * Contains position and normal vectors for a vertex
4
4
  */
5
5
  export declare class PositionNormalVertex {
6
- /** the position of the vertex (defaut: 0,0,0) */
6
+ /** [Vector3.Zero()] the position of the vertex (defaut: 0,0,0) */
7
7
  position: Vector3;
8
- /** the normal of the vertex (defaut: 0,1,0) */
8
+ /** [Vector3.Up()] the normal of the vertex (defaut: 0,1,0) */
9
9
  normal: Vector3;
10
10
  /**
11
11
  * Creates a PositionNormalVertex
@@ -13,9 +13,9 @@ export declare class PositionNormalVertex {
13
13
  * @param normal the normal of the vertex (defaut: 0,1,0)
14
14
  */
15
15
  constructor(
16
- /** the position of the vertex (defaut: 0,0,0) */
16
+ /** [Vector3.Zero()] the position of the vertex (defaut: 0,0,0) */
17
17
  position?: Vector3,
18
- /** the normal of the vertex (defaut: 0,1,0) */
18
+ /** [Vector3.Up()] the normal of the vertex (defaut: 0,1,0) */
19
19
  normal?: Vector3);
20
20
  /**
21
21
  * Clones the PositionNormalVertex
@@ -27,11 +27,11 @@ export declare class PositionNormalVertex {
27
27
  * Contains position, normal and uv vectors for a vertex
28
28
  */
29
29
  export declare class PositionNormalTextureVertex {
30
- /** the position of the vertex (defaut: 0,0,0) */
30
+ /** [Vector3.Zero()] the position of the vertex (defaut: 0,0,0) */
31
31
  position: Vector3;
32
- /** the normal of the vertex (defaut: 0,1,0) */
32
+ /** [Vector3.Up()] the normal of the vertex (defaut: 0,1,0) */
33
33
  normal: Vector3;
34
- /** the uv of the vertex (default: 0,0) */
34
+ /** [Vector3.Zero()] the uv of the vertex (default: 0,0) */
35
35
  uv: Vector2;
36
36
  /**
37
37
  * Creates a PositionNormalTextureVertex
@@ -40,11 +40,11 @@ export declare class PositionNormalTextureVertex {
40
40
  * @param uv the uv of the vertex (default: 0,0)
41
41
  */
42
42
  constructor(
43
- /** the position of the vertex (defaut: 0,0,0) */
43
+ /** [Vector3.Zero()] the position of the vertex (defaut: 0,0,0) */
44
44
  position?: Vector3,
45
- /** the normal of the vertex (defaut: 0,1,0) */
45
+ /** [Vector3.Up()] the normal of the vertex (defaut: 0,1,0) */
46
46
  normal?: Vector3,
47
- /** the uv of the vertex (default: 0,0) */
47
+ /** [Vector3.Zero()] the uv of the vertex (default: 0,0) */
48
48
  uv?: Vector2);
49
49
  /**
50
50
  * Clones the PositionNormalTextureVertex
@@ -9,9 +9,9 @@ export class PositionNormalVertex {
9
9
  * @param normal the normal of the vertex (defaut: 0,1,0)
10
10
  */
11
11
  constructor(
12
- /** the position of the vertex (defaut: 0,0,0) */
12
+ /** [Vector3.Zero()] the position of the vertex (defaut: 0,0,0) */
13
13
  position = Vector3.Zero(),
14
- /** the normal of the vertex (defaut: 0,1,0) */
14
+ /** [Vector3.Up()] the normal of the vertex (defaut: 0,1,0) */
15
15
  normal = Vector3.Up()) {
16
16
  this.position = position;
17
17
  this.normal = normal;
@@ -35,11 +35,11 @@ export class PositionNormalTextureVertex {
35
35
  * @param uv the uv of the vertex (default: 0,0)
36
36
  */
37
37
  constructor(
38
- /** the position of the vertex (defaut: 0,0,0) */
38
+ /** [Vector3.Zero()] the position of the vertex (defaut: 0,0,0) */
39
39
  position = Vector3.Zero(),
40
- /** the normal of the vertex (defaut: 0,1,0) */
40
+ /** [Vector3.Up()] the normal of the vertex (defaut: 0,1,0) */
41
41
  normal = Vector3.Up(),
42
- /** the uv of the vertex (default: 0,0) */
42
+ /** [Vector3.Zero()] the uv of the vertex (default: 0,0) */
43
43
  uv = Vector2.Zero()) {
44
44
  this.position = position;
45
45
  this.normal = normal;
@@ -1 +1 @@
1
- {"version":3,"file":"math.vertexFormat.js","sourceRoot":"","sources":["../../../../dev/core/src/Maths/math.vertexFormat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAEjD;;GAEG;AACH,MAAM,OAAO,oBAAoB;IAC7B;;;;OAIG;IACH;IACI,iDAAiD;IAC1C,WAAoB,OAAO,CAAC,IAAI,EAAE;IACzC,+CAA+C;IACxC,SAAkB,OAAO,CAAC,EAAE,EAAE;QAF9B,aAAQ,GAAR,QAAQ,CAA0B;QAElC,WAAM,GAAN,MAAM,CAAwB;IACtC,CAAC;IAEJ;;;OAGG;IACI,KAAK;QACR,OAAO,IAAI,oBAAoB,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC;IAChF,CAAC;CACJ;AAED;;GAEG;AACH,MAAM,OAAO,2BAA2B;IACpC;;;;;OAKG;IACH;IACI,iDAAiD;IAC1C,WAAoB,OAAO,CAAC,IAAI,EAAE;IACzC,+CAA+C;IACxC,SAAkB,OAAO,CAAC,EAAE,EAAE;IACrC,0CAA0C;IACnC,KAAc,OAAO,CAAC,IAAI,EAAE;QAJ5B,aAAQ,GAAR,QAAQ,CAA0B;QAElC,WAAM,GAAN,MAAM,CAAwB;QAE9B,OAAE,GAAF,EAAE,CAA0B;IACpC,CAAC;IACJ;;;OAGG;IACI,KAAK;QACR,OAAO,IAAI,2BAA2B,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,EAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC;IACxG,CAAC;CACJ","sourcesContent":["import { Vector3, Vector2 } from \"./math.vector\";\r\n\r\n/**\r\n * Contains position and normal vectors for a vertex\r\n */\r\nexport class PositionNormalVertex {\r\n /**\r\n * Creates a PositionNormalVertex\r\n * @param position the position of the vertex (defaut: 0,0,0)\r\n * @param normal the normal of the vertex (defaut: 0,1,0)\r\n */\r\n constructor(\r\n /** the position of the vertex (defaut: 0,0,0) */\r\n public position: Vector3 = Vector3.Zero(),\r\n /** the normal of the vertex (defaut: 0,1,0) */\r\n public normal: Vector3 = Vector3.Up()\r\n ) {}\r\n\r\n /**\r\n * Clones the PositionNormalVertex\r\n * @returns the cloned PositionNormalVertex\r\n */\r\n public clone(): PositionNormalVertex {\r\n return new PositionNormalVertex(this.position.clone(), this.normal.clone());\r\n }\r\n}\r\n\r\n/**\r\n * Contains position, normal and uv vectors for a vertex\r\n */\r\nexport class PositionNormalTextureVertex {\r\n /**\r\n * Creates a PositionNormalTextureVertex\r\n * @param position the position of the vertex (defaut: 0,0,0)\r\n * @param normal the normal of the vertex (defaut: 0,1,0)\r\n * @param uv the uv of the vertex (default: 0,0)\r\n */\r\n constructor(\r\n /** the position of the vertex (defaut: 0,0,0) */\r\n public position: Vector3 = Vector3.Zero(),\r\n /** the normal of the vertex (defaut: 0,1,0) */\r\n public normal: Vector3 = Vector3.Up(),\r\n /** the uv of the vertex (default: 0,0) */\r\n public uv: Vector2 = Vector2.Zero()\r\n ) {}\r\n /**\r\n * Clones the PositionNormalTextureVertex\r\n * @returns the cloned PositionNormalTextureVertex\r\n */\r\n public clone(): PositionNormalTextureVertex {\r\n return new PositionNormalTextureVertex(this.position.clone(), this.normal.clone(), this.uv.clone());\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"math.vertexFormat.js","sourceRoot":"","sources":["../../../../dev/core/src/Maths/math.vertexFormat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAEjD;;GAEG;AACH,MAAM,OAAO,oBAAoB;IAC7B;;;;OAIG;IACH;IACI,kEAAkE;IAC3D,WAAoB,OAAO,CAAC,IAAI,EAAE;IACzC,8DAA8D;IACvD,SAAkB,OAAO,CAAC,EAAE,EAAE;QAF9B,aAAQ,GAAR,QAAQ,CAA0B;QAElC,WAAM,GAAN,MAAM,CAAwB;IACtC,CAAC;IAEJ;;;OAGG;IACI,KAAK;QACR,OAAO,IAAI,oBAAoB,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC;IAChF,CAAC;CACJ;AAED;;GAEG;AACH,MAAM,OAAO,2BAA2B;IACpC;;;;;OAKG;IACH;IACI,kEAAkE;IAC3D,WAAoB,OAAO,CAAC,IAAI,EAAE;IACzC,8DAA8D;IACvD,SAAkB,OAAO,CAAC,EAAE,EAAE;IACrC,2DAA2D;IACpD,KAAc,OAAO,CAAC,IAAI,EAAE;QAJ5B,aAAQ,GAAR,QAAQ,CAA0B;QAElC,WAAM,GAAN,MAAM,CAAwB;QAE9B,OAAE,GAAF,EAAE,CAA0B;IACpC,CAAC;IACJ;;;OAGG;IACI,KAAK;QACR,OAAO,IAAI,2BAA2B,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,EAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC;IACxG,CAAC;CACJ","sourcesContent":["import { Vector3, Vector2 } from \"./math.vector\";\r\n\r\n/**\r\n * Contains position and normal vectors for a vertex\r\n */\r\nexport class PositionNormalVertex {\r\n /**\r\n * Creates a PositionNormalVertex\r\n * @param position the position of the vertex (defaut: 0,0,0)\r\n * @param normal the normal of the vertex (defaut: 0,1,0)\r\n */\r\n constructor(\r\n /** [Vector3.Zero()] the position of the vertex (defaut: 0,0,0) */\r\n public position: Vector3 = Vector3.Zero(),\r\n /** [Vector3.Up()] the normal of the vertex (defaut: 0,1,0) */\r\n public normal: Vector3 = Vector3.Up()\r\n ) {}\r\n\r\n /**\r\n * Clones the PositionNormalVertex\r\n * @returns the cloned PositionNormalVertex\r\n */\r\n public clone(): PositionNormalVertex {\r\n return new PositionNormalVertex(this.position.clone(), this.normal.clone());\r\n }\r\n}\r\n\r\n/**\r\n * Contains position, normal and uv vectors for a vertex\r\n */\r\nexport class PositionNormalTextureVertex {\r\n /**\r\n * Creates a PositionNormalTextureVertex\r\n * @param position the position of the vertex (defaut: 0,0,0)\r\n * @param normal the normal of the vertex (defaut: 0,1,0)\r\n * @param uv the uv of the vertex (default: 0,0)\r\n */\r\n constructor(\r\n /** [Vector3.Zero()] the position of the vertex (defaut: 0,0,0) */\r\n public position: Vector3 = Vector3.Zero(),\r\n /** [Vector3.Up()] the normal of the vertex (defaut: 0,1,0) */\r\n public normal: Vector3 = Vector3.Up(),\r\n /** [Vector3.Zero()] the uv of the vertex (default: 0,0) */\r\n public uv: Vector2 = Vector2.Zero()\r\n ) {}\r\n /**\r\n * Clones the PositionNormalTextureVertex\r\n * @returns the cloned PositionNormalTextureVertex\r\n */\r\n public clone(): PositionNormalTextureVertex {\r\n return new PositionNormalTextureVertex(this.position.clone(), this.normal.clone(), this.uv.clone());\r\n }\r\n}\r\n"]}
@@ -792,6 +792,13 @@ export declare abstract class AbstractMesh extends TransformNode implements IDis
792
792
  * @internal
793
793
  */
794
794
  _refreshBoundingInfo(data: Nullable<FloatArray>, bias: Nullable<Vector2>): void;
795
+ /**
796
+ * @internal
797
+ */
798
+ _refreshBoundingInfoDirect(extend: {
799
+ minimum: Vector3;
800
+ maximum: Vector3;
801
+ }): void;
795
802
  /**
796
803
  * Internal function to get buffer data and possibly apply morphs and normals
797
804
  * @param applySkeleton
@@ -1223,6 +1223,23 @@ export class AbstractMesh extends TransformNode {
1223
1223
  }
1224
1224
  this._updateBoundingInfo();
1225
1225
  }
1226
+ /**
1227
+ * @internal
1228
+ */
1229
+ _refreshBoundingInfoDirect(extend) {
1230
+ if (this._boundingInfo) {
1231
+ this._boundingInfo.reConstruct(extend.minimum, extend.maximum);
1232
+ }
1233
+ else {
1234
+ this._boundingInfo = new BoundingInfo(extend.minimum, extend.maximum);
1235
+ }
1236
+ if (this.subMeshes) {
1237
+ for (let index = 0; index < this.subMeshes.length; index++) {
1238
+ this.subMeshes[index].refreshBoundingInfo(null);
1239
+ }
1240
+ }
1241
+ this._updateBoundingInfo();
1242
+ }
1226
1243
  /**
1227
1244
  * Internal function to get buffer data and possibly apply morphs and normals
1228
1245
  * @param applySkeleton