@onerjs/core 8.50.3 → 8.50.5

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/Engines/AbstractEngine/abstractEngine.textureSelector.d.ts +45 -0
  2. package/Engines/AbstractEngine/abstractEngine.textureSelector.js +69 -0
  3. package/Engines/AbstractEngine/abstractEngine.textureSelector.js.map +1 -0
  4. package/Engines/AbstractEngine/index.d.ts +2 -0
  5. package/Engines/AbstractEngine/index.js +4 -0
  6. package/Engines/AbstractEngine/index.js.map +1 -1
  7. package/Engines/Extensions/engine.textureSelector.d.ts +2 -45
  8. package/Engines/Extensions/engine.textureSelector.js +8 -68
  9. package/Engines/Extensions/engine.textureSelector.js.map +1 -1
  10. package/Engines/abstractEngine.js +2 -2
  11. package/Engines/abstractEngine.js.map +1 -1
  12. package/FlowGraph/flowGraph.d.ts +22 -0
  13. package/FlowGraph/flowGraph.js +11 -0
  14. package/FlowGraph/flowGraph.js.map +1 -1
  15. package/FlowGraph/flowGraphCoordinator.d.ts +2 -1
  16. package/FlowGraph/flowGraphCoordinator.js +4 -2
  17. package/FlowGraph/flowGraphCoordinator.js.map +1 -1
  18. package/FlowGraph/flowGraphParser.js +7 -0
  19. package/FlowGraph/flowGraphParser.js.map +1 -1
  20. package/FlowGraph/typeDefinitions.d.ts +8 -0
  21. package/FlowGraph/typeDefinitions.js.map +1 -1
  22. package/Lights/Clustered/clusteredLightContainer.d.ts +1 -0
  23. package/Lights/Clustered/clusteredLightContainer.js +19 -0
  24. package/Lights/Clustered/clusteredLightContainer.js.map +1 -1
  25. package/Materials/GaussianSplatting/gaussianSplattingMaterial.js +6 -2
  26. package/Materials/GaussianSplatting/gaussianSplattingMaterial.js.map +1 -1
  27. package/Meshes/GaussianSplatting/gaussianSplattingMesh.d.ts +13 -0
  28. package/Meshes/GaussianSplatting/gaussianSplattingMesh.js +26 -0
  29. package/Meshes/GaussianSplatting/gaussianSplattingMesh.js.map +1 -1
  30. package/Meshes/GaussianSplatting/gaussianSplattingMeshBase.d.ts +3 -0
  31. package/Meshes/GaussianSplatting/gaussianSplattingMeshBase.js +113 -10
  32. package/Meshes/GaussianSplatting/gaussianSplattingMeshBase.js.map +1 -1
  33. package/Meshes/mesh.d.ts +4 -2
  34. package/Meshes/mesh.js +8 -6
  35. package/Meshes/mesh.js.map +1 -1
  36. package/Misc/tools.js +1 -1
  37. package/Misc/tools.js.map +1 -1
  38. package/Particles/gpuParticleSystem.d.ts +35 -2
  39. package/Particles/gpuParticleSystem.js +272 -6
  40. package/Particles/gpuParticleSystem.js.map +1 -1
  41. package/Particles/thinParticleSystem.js +5 -0
  42. package/Particles/thinParticleSystem.js.map +1 -1
  43. package/Rendering/depthRenderer.d.ts +8 -0
  44. package/Rendering/depthRenderer.js +48 -13
  45. package/Rendering/depthRenderer.js.map +1 -1
  46. package/Rendering/depthRendererSceneComponent.d.ts +1 -0
  47. package/Rendering/depthRendererSceneComponent.js +26 -0
  48. package/Rendering/depthRendererSceneComponent.js.map +1 -1
  49. package/Shaders/gpuRenderParticles.vertex.js +7 -0
  50. package/Shaders/gpuRenderParticles.vertex.js.map +1 -1
  51. package/XR/features/WebXRBodyTracking.d.ts +952 -0
  52. package/XR/features/WebXRBodyTracking.js +2221 -0
  53. package/XR/features/WebXRBodyTracking.js.map +1 -0
  54. package/XR/features/index.d.ts +1 -0
  55. package/XR/features/index.js +1 -0
  56. package/XR/features/index.js.map +1 -1
  57. package/XR/webXRFeaturesManager.d.ts +7 -0
  58. package/XR/webXRFeaturesManager.js +4 -0
  59. package/XR/webXRFeaturesManager.js.map +1 -1
  60. package/package.json +1 -1
  61. package/sceneComponent.d.ts +1 -0
  62. package/sceneComponent.js +1 -0
  63. package/sceneComponent.js.map +1 -1
package/Meshes/mesh.d.ts CHANGED
@@ -1196,9 +1196,10 @@ export declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
1196
1196
  * @param meshSubclass (optional) can be set to a Mesh where the merged vertices will be inserted.
1197
1197
  * @param subdivideWithSubMeshes when true (false default), subdivide mesh into subMeshes.
1198
1198
  * @param multiMultiMaterials when true (false default), subdivide mesh into subMeshes with multiple materials, ignores subdivideWithSubMeshes.
1199
+ * @param enableCompletion defines a boolean indicating if the vertex data should be completed to be compatible
1199
1200
  * @returns a new mesh
1200
1201
  */
1201
- static MergeMeshes(meshes: Array<Mesh>, disposeSource?: boolean, allow32BitsIndices?: boolean, meshSubclass?: Mesh, subdivideWithSubMeshes?: boolean, multiMultiMaterials?: boolean): Nullable<Mesh>;
1202
+ static MergeMeshes(meshes: Array<Mesh>, disposeSource?: boolean, allow32BitsIndices?: boolean, meshSubclass?: Mesh, subdivideWithSubMeshes?: boolean, multiMultiMaterials?: boolean, enableCompletion?: boolean): Nullable<Mesh>;
1202
1203
  /**
1203
1204
  * Merge the array of meshes into a single mesh for performance reasons.
1204
1205
  * @param meshes array of meshes with the vertices to merge. Entries cannot be empty meshes.
@@ -1207,9 +1208,10 @@ export declare class Mesh extends AbstractMesh implements IGetSetVerticesData {
1207
1208
  * @param meshSubclass (optional) can be set to a Mesh where the merged vertices will be inserted.
1208
1209
  * @param subdivideWithSubMeshes when true (false default), subdivide mesh into subMeshes.
1209
1210
  * @param multiMultiMaterials when true (false default), subdivide mesh into subMeshes with multiple materials, ignores subdivideWithSubMeshes.
1211
+ * @param enableCompletion defines a boolean indicating if the vertex data should be completed to be compatible
1210
1212
  * @returns a new mesh
1211
1213
  */
1212
- static MergeMeshesAsync(meshes: Array<Mesh>, disposeSource?: boolean, allow32BitsIndices?: boolean, meshSubclass?: Mesh, subdivideWithSubMeshes?: boolean, multiMultiMaterials?: boolean): Promise<any>;
1214
+ static MergeMeshesAsync(meshes: Array<Mesh>, disposeSource?: boolean, allow32BitsIndices?: boolean, meshSubclass?: Mesh, subdivideWithSubMeshes?: boolean, multiMultiMaterials?: boolean, enableCompletion?: boolean): Promise<any>;
1213
1215
  private static _MergeMeshesCoroutine;
1214
1216
  /**
1215
1217
  * @internal
package/Meshes/mesh.js CHANGED
@@ -4089,10 +4089,11 @@ export class Mesh extends AbstractMesh {
4089
4089
  * @param meshSubclass (optional) can be set to a Mesh where the merged vertices will be inserted.
4090
4090
  * @param subdivideWithSubMeshes when true (false default), subdivide mesh into subMeshes.
4091
4091
  * @param multiMultiMaterials when true (false default), subdivide mesh into subMeshes with multiple materials, ignores subdivideWithSubMeshes.
4092
+ * @param enableCompletion defines a boolean indicating if the vertex data should be completed to be compatible
4092
4093
  * @returns a new mesh
4093
4094
  */
4094
- static MergeMeshes(meshes, disposeSource = true, allow32BitsIndices, meshSubclass, subdivideWithSubMeshes, multiMultiMaterials) {
4095
- return runCoroutineSync(Mesh._MergeMeshesCoroutine(meshes, disposeSource, allow32BitsIndices, meshSubclass, subdivideWithSubMeshes, multiMultiMaterials, false));
4095
+ static MergeMeshes(meshes, disposeSource = true, allow32BitsIndices, meshSubclass, subdivideWithSubMeshes, multiMultiMaterials, enableCompletion = false) {
4096
+ return runCoroutineSync(Mesh._MergeMeshesCoroutine(meshes, disposeSource, allow32BitsIndices, meshSubclass, subdivideWithSubMeshes, multiMultiMaterials, false, enableCompletion));
4096
4097
  }
4097
4098
  /**
4098
4099
  * Merge the array of meshes into a single mesh for performance reasons.
@@ -4102,12 +4103,13 @@ export class Mesh extends AbstractMesh {
4102
4103
  * @param meshSubclass (optional) can be set to a Mesh where the merged vertices will be inserted.
4103
4104
  * @param subdivideWithSubMeshes when true (false default), subdivide mesh into subMeshes.
4104
4105
  * @param multiMultiMaterials when true (false default), subdivide mesh into subMeshes with multiple materials, ignores subdivideWithSubMeshes.
4106
+ * @param enableCompletion defines a boolean indicating if the vertex data should be completed to be compatible
4105
4107
  * @returns a new mesh
4106
4108
  */
4107
- static async MergeMeshesAsync(meshes, disposeSource = true, allow32BitsIndices, meshSubclass, subdivideWithSubMeshes, multiMultiMaterials) {
4108
- return await runCoroutineAsync(Mesh._MergeMeshesCoroutine(meshes, disposeSource, allow32BitsIndices, meshSubclass, subdivideWithSubMeshes, multiMultiMaterials, true), createYieldingScheduler());
4109
+ static async MergeMeshesAsync(meshes, disposeSource = true, allow32BitsIndices, meshSubclass, subdivideWithSubMeshes, multiMultiMaterials, enableCompletion = false) {
4110
+ return await runCoroutineAsync(Mesh._MergeMeshesCoroutine(meshes, disposeSource, allow32BitsIndices, meshSubclass, subdivideWithSubMeshes, multiMultiMaterials, true, enableCompletion), createYieldingScheduler());
4109
4111
  }
4110
- static *_MergeMeshesCoroutine(meshes, disposeSource = true, allow32BitsIndices, meshSubclass, subdivideWithSubMeshes, multiMultiMaterials, isAsync) {
4112
+ static *_MergeMeshesCoroutine(meshes, disposeSource = true, allow32BitsIndices, meshSubclass, subdivideWithSubMeshes, multiMultiMaterials, isAsync, enableCompletion = false) {
4111
4113
  // Remove any null/undefined entries from the mesh array
4112
4114
  meshes = meshes.filter(Boolean);
4113
4115
  if (meshes.length === 0) {
@@ -4227,7 +4229,7 @@ export class Mesh extends AbstractMesh {
4227
4229
  yield;
4228
4230
  }
4229
4231
  }
4230
- const mergeCoroutine = sourceVertexData._mergeCoroutine(sourceTransform, meshVertexDatas, allow32BitsIndices, isAsync, !disposeSource);
4232
+ const mergeCoroutine = sourceVertexData._mergeCoroutine(sourceTransform, meshVertexDatas, allow32BitsIndices, isAsync, !disposeSource, undefined, enableCompletion);
4231
4233
  let mergeCoroutineStep = mergeCoroutine.next();
4232
4234
  while (!mergeCoroutineStep.done) {
4233
4235
  if (isAsync) {