@babylonjs/core 5.26.0 → 5.27.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 (63) hide show
  1. package/Debug/debugLayer.d.ts +3 -3
  2. package/Debug/debugLayer.js +2 -2
  3. package/Debug/debugLayer.js.map +1 -1
  4. package/Engines/thinEngine.js +6 -6
  5. package/Engines/thinEngine.js.map +1 -1
  6. package/Inputs/scene.inputManager.js +1 -1
  7. package/Inputs/scene.inputManager.js.map +1 -1
  8. package/Layers/glowLayer.d.ts +5 -0
  9. package/Layers/glowLayer.js +21 -8
  10. package/Layers/glowLayer.js.map +1 -1
  11. package/Loading/Plugins/babylonFileLoader.js +3 -3
  12. package/Loading/Plugins/babylonFileLoader.js.map +1 -1
  13. package/Materials/Node/nodeMaterialBlockConnectionPoint.d.ts +1 -2
  14. package/Materials/Node/nodeMaterialBlockConnectionPoint.js.map +1 -1
  15. package/Materials/PBR/pbrAnisotropicConfiguration.js +2 -0
  16. package/Materials/PBR/pbrAnisotropicConfiguration.js.map +1 -1
  17. package/Materials/PBR/pbrClearCoatConfiguration.js +7 -0
  18. package/Materials/PBR/pbrClearCoatConfiguration.js.map +1 -1
  19. package/Materials/PBR/pbrIridescenceConfiguration.js +2 -0
  20. package/Materials/PBR/pbrIridescenceConfiguration.js.map +1 -1
  21. package/Materials/PBR/pbrSheenConfiguration.js +3 -0
  22. package/Materials/PBR/pbrSheenConfiguration.js.map +1 -1
  23. package/Materials/PBR/pbrSubSurfaceConfiguration.js +22 -0
  24. package/Materials/PBR/pbrSubSurfaceConfiguration.js.map +1 -1
  25. package/Materials/Textures/texture.d.ts +7 -2
  26. package/Materials/Textures/texture.js +33 -28
  27. package/Materials/Textures/texture.js.map +1 -1
  28. package/Maths/math.polar.d.ts +2 -2
  29. package/Maths/math.polar.js +4 -4
  30. package/Maths/math.polar.js.map +1 -1
  31. package/Maths/math.vector.d.ts +62 -1
  32. package/Maths/math.vector.js +62 -1
  33. package/Maths/math.vector.js.map +1 -1
  34. package/Meshes/abstractMesh.d.ts +8 -0
  35. package/Meshes/abstractMesh.js +12 -0
  36. package/Meshes/abstractMesh.js.map +1 -1
  37. package/Meshes/mesh.js +4 -1
  38. package/Meshes/mesh.js.map +1 -1
  39. package/Meshes/transformNode.js +4 -3
  40. package/Meshes/transformNode.js.map +1 -1
  41. package/Misc/screenshotTools.js +2 -12
  42. package/Misc/screenshotTools.js.map +1 -1
  43. package/Misc/tools.d.ts +2 -8
  44. package/Misc/tools.js +2 -2
  45. package/Misc/tools.js.map +1 -1
  46. package/PostProcesses/blackAndWhitePostProcess.d.ts +1 -1
  47. package/PostProcesses/blackAndWhitePostProcess.js.map +1 -1
  48. package/PostProcesses/colorCorrectionPostProcess.d.ts +1 -1
  49. package/PostProcesses/colorCorrectionPostProcess.js +2 -1
  50. package/PostProcesses/colorCorrectionPostProcess.js.map +1 -1
  51. package/PostProcesses/refractionPostProcess.d.ts +2 -1
  52. package/PostProcesses/refractionPostProcess.js.map +1 -1
  53. package/PostProcesses/tonemapPostProcess.d.ts +2 -1
  54. package/PostProcesses/tonemapPostProcess.js.map +1 -1
  55. package/PostProcesses/volumetricLightScatteringPostProcess.d.ts +2 -1
  56. package/PostProcesses/volumetricLightScatteringPostProcess.js +1 -1
  57. package/PostProcesses/volumetricLightScatteringPostProcess.js.map +1 -1
  58. package/PostProcesses/vrDistortionCorrectionPostProcess.d.ts +2 -1
  59. package/PostProcesses/vrDistortionCorrectionPostProcess.js.map +1 -1
  60. package/PostProcesses/vrMultiviewToSingleviewPostProcess.d.ts +2 -1
  61. package/PostProcesses/vrMultiviewToSingleviewPostProcess.js +3 -2
  62. package/PostProcesses/vrMultiviewToSingleviewPostProcess.js.map +1 -1
  63. package/package.json +1 -1
@@ -93,6 +93,7 @@ declare class _InternalAbstractMeshDataInfo {
93
93
  _material: Nullable<Material>;
94
94
  _materialForRenderPass: Array<Material | undefined>;
95
95
  _positions: Nullable<Vector3[]>;
96
+ _pointerOverDisableMeshTesting: boolean;
96
97
  _meshCollisionData: _MeshCollisionData;
97
98
  _enableDistantPicking: boolean;
98
99
  }
@@ -295,6 +296,13 @@ export declare class AbstractMesh extends TransformNode implements IDisposable,
295
296
  * Gets or sets a boolean indicating that pointer move events must be supported on this mesh (false by default)
296
297
  */
297
298
  enablePointerMoveEvents: boolean;
299
+ /**
300
+ * Gets or sets the property which disables the test that is checking that the mesh under the pointer is the same than the previous time we tested for it (default: false).
301
+ * Set this property to true if you want thin instances picking to be reported accurately when moving over the mesh.
302
+ * Note that setting this property to true will incur some performance penalties when dealing with pointer events for this mesh so use it sparingly.
303
+ */
304
+ get pointerOverDisableMeshTesting(): boolean;
305
+ set pointerOverDisableMeshTesting(disable: boolean);
298
306
  /**
299
307
  * Specifies the rendering group id for this mesh (0 by default)
300
308
  * @see https://doc.babylonjs.com/resources/transparency_and_how_meshes_are_rendered#rendering-groups
@@ -69,6 +69,7 @@ class _InternalAbstractMeshDataInfo {
69
69
  this._bakedVertexAnimationManager = null;
70
70
  this._material = null;
71
71
  this._positions = null;
72
+ this._pointerOverDisableMeshTesting = false;
72
73
  // Collisions
73
74
  this._meshCollisionData = new _MeshCollisionData();
74
75
  this._enableDistantPicking = false;
@@ -422,6 +423,17 @@ export class AbstractMesh extends TransformNode {
422
423
  this._markSubMeshesAsMiscDirty();
423
424
  }
424
425
  }
426
+ /**
427
+ * Gets or sets the property which disables the test that is checking that the mesh under the pointer is the same than the previous time we tested for it (default: false).
428
+ * Set this property to true if you want thin instances picking to be reported accurately when moving over the mesh.
429
+ * Note that setting this property to true will incur some performance penalties when dealing with pointer events for this mesh so use it sparingly.
430
+ */
431
+ get pointerOverDisableMeshTesting() {
432
+ return this._internalAbstractMeshDataInfo._pointerOverDisableMeshTesting;
433
+ }
434
+ set pointerOverDisableMeshTesting(disable) {
435
+ this._internalAbstractMeshDataInfo._pointerOverDisableMeshTesting = disable;
436
+ }
425
437
  /**
426
438
  * Specifies the rendering group id for this mesh (0 by default)
427
439
  * @see https://doc.babylonjs.com/resources/transparency_and_how_meshes_are_rendered#rendering-groups