@babylonjs/core 5.52.0 → 5.53.0

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 (54) hide show
  1. package/Animations/animatable.js +1 -1
  2. package/Animations/animatable.js.map +1 -1
  3. package/Collisions/pickingInfo.d.ts +2 -1
  4. package/Collisions/pickingInfo.js +4 -3
  5. package/Collisions/pickingInfo.js.map +1 -1
  6. package/DeviceInput/eventFactory.js +4 -0
  7. package/DeviceInput/eventFactory.js.map +1 -1
  8. package/DeviceInput/webDeviceInputSystem.js +17 -9
  9. package/DeviceInput/webDeviceInputSystem.js.map +1 -1
  10. package/Engines/engine.d.ts +2 -0
  11. package/Engines/engine.js +5 -0
  12. package/Engines/engine.js.map +1 -1
  13. package/Engines/thinEngine.js +3 -3
  14. package/Engines/thinEngine.js.map +1 -1
  15. package/Inputs/scene.inputManager.js +5 -12
  16. package/Inputs/scene.inputManager.js.map +1 -1
  17. package/Materials/Textures/Filtering/hdrFiltering.js +4 -0
  18. package/Materials/Textures/Filtering/hdrFiltering.js.map +1 -1
  19. package/Materials/materialPluginBase.d.ts +3 -2
  20. package/Materials/materialPluginBase.js.map +1 -1
  21. package/Materials/materialPluginManager.js +13 -3
  22. package/Materials/materialPluginManager.js.map +1 -1
  23. package/Materials/uniformBuffer.d.ts +2 -0
  24. package/Materials/uniformBuffer.js +4 -0
  25. package/Materials/uniformBuffer.js.map +1 -1
  26. package/Maths/math.frustum.d.ts +8 -1
  27. package/Maths/math.frustum.js +14 -0
  28. package/Maths/math.frustum.js.map +1 -1
  29. package/Meshes/instancedMesh.d.ts +2 -1
  30. package/Meshes/instancedMesh.js +3 -2
  31. package/Meshes/instancedMesh.js.map +1 -1
  32. package/Meshes/mesh.d.ts +10 -5
  33. package/Meshes/mesh.js +40 -16
  34. package/Meshes/mesh.js.map +1 -1
  35. package/Misc/filesInput.d.ts +5 -2
  36. package/Misc/filesInput.js +39 -20
  37. package/Misc/filesInput.js.map +1 -1
  38. package/Misc/sceneOptimizer.js +3 -0
  39. package/Misc/sceneOptimizer.js.map +1 -1
  40. package/Physics/v2/physicsAggregate.js +3 -3
  41. package/Physics/v2/physicsAggregate.js.map +1 -1
  42. package/Physics/v2/physicsBody.d.ts +27 -16
  43. package/Physics/v2/physicsBody.js +31 -16
  44. package/Physics/v2/physicsBody.js.map +1 -1
  45. package/Physics/v2/physicsConstraint.d.ts +6 -6
  46. package/Physics/v2/physicsConstraint.js +6 -6
  47. package/Physics/v2/physicsConstraint.js.map +1 -1
  48. package/Physics/v2/physicsShape.d.ts +7 -7
  49. package/Physics/v2/physicsShape.js +7 -7
  50. package/Physics/v2/physicsShape.js.map +1 -1
  51. package/XR/features/WebXRControllerTeleportation.d.ts +9 -0
  52. package/XR/features/WebXRControllerTeleportation.js +28 -4
  53. package/XR/features/WebXRControllerTeleportation.js.map +1 -1
  54. package/package.json +1 -1
@@ -34,13 +34,13 @@ export class ThinEngine {
34
34
  */
35
35
  // Not mixed with Version for tooling purpose.
36
36
  static get NpmPackage() {
37
- return "babylonjs@5.52.0";
37
+ return "babylonjs@5.53.0";
38
38
  }
39
39
  /**
40
40
  * Returns the current version of the framework
41
41
  */
42
42
  static get Version() {
43
- return "5.52.0";
43
+ return "5.53.0";
44
44
  }
45
45
  /**
46
46
  * Returns a string describing the current engine
@@ -521,7 +521,7 @@ export class ThinEngine {
521
521
  };
522
522
  canvas.addEventListener("webglcontextlost", this._onContextLost, false);
523
523
  canvas.addEventListener("webglcontextrestored", this._onContextRestored, false);
524
- options.powerPreference = "high-performance";
524
+ options.powerPreference = options.powerPreference || "high-performance";
525
525
  }
526
526
  // Detect if we are running on a faulty buggy desktop OS.
527
527
  this._badDesktopOS = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);