@babylonjs/core 7.11.3 → 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 (36) hide show
  1. package/Compute/computeEffect.js +21 -3
  2. package/Compute/computeEffect.js.map +1 -1
  3. package/Culling/Helper/IBoundingInfoHelperPlatform.d.ts +8 -0
  4. package/Culling/Helper/IBoundingInfoHelperPlatform.js +2 -0
  5. package/Culling/Helper/IBoundingInfoHelperPlatform.js.map +1 -0
  6. package/Culling/Helper/boundingInfoHelper.d.ts +14 -10
  7. package/Culling/Helper/boundingInfoHelper.js +22 -152
  8. package/Culling/Helper/boundingInfoHelper.js.map +1 -1
  9. package/Culling/Helper/computeShaderBoundingHelper.d.ts +34 -0
  10. package/Culling/Helper/computeShaderBoundingHelper.js +209 -0
  11. package/Culling/Helper/computeShaderBoundingHelper.js.map +1 -0
  12. package/Culling/Helper/transformFeedbackBoundingHelper.d.ts +21 -0
  13. package/Culling/Helper/transformFeedbackBoundingHelper.js +197 -0
  14. package/Culling/Helper/transformFeedbackBoundingHelper.js.map +1 -0
  15. package/Culling/index.d.ts +2 -0
  16. package/Culling/index.js +2 -0
  17. package/Culling/index.js.map +1 -1
  18. package/Engines/Processors/shaderProcessingOptions.d.ts +1 -1
  19. package/Engines/Processors/shaderProcessingOptions.js.map +1 -1
  20. package/Engines/Processors/shaderProcessor.js +2 -2
  21. package/Engines/Processors/shaderProcessor.js.map +1 -1
  22. package/Engines/abstractEngine.js +2 -2
  23. package/Engines/abstractEngine.js.map +1 -1
  24. package/Meshes/abstractMesh.d.ts +7 -0
  25. package/Meshes/abstractMesh.js +17 -0
  26. package/Meshes/abstractMesh.js.map +1 -1
  27. package/Morph/morphTargetManager.d.ts +8 -4
  28. package/Morph/morphTargetManager.js +6 -3
  29. package/Morph/morphTargetManager.js.map +1 -1
  30. package/ShadersWGSL/boundingInfo.compute.d.ts +5 -0
  31. package/ShadersWGSL/boundingInfo.compute.js +80 -0
  32. package/ShadersWGSL/boundingInfo.compute.js.map +1 -0
  33. package/package.json +1 -1
  34. package/Culling/Helper/webgl2BoundingHelper.d.ts +0 -22
  35. package/Culling/Helper/webgl2BoundingHelper.js +0 -61
  36. package/Culling/Helper/webgl2BoundingHelper.js.map +0 -1
@@ -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