@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.
- package/Engines/AbstractEngine/abstractEngine.textureSelector.d.ts +45 -0
- package/Engines/AbstractEngine/abstractEngine.textureSelector.js +69 -0
- package/Engines/AbstractEngine/abstractEngine.textureSelector.js.map +1 -0
- package/Engines/AbstractEngine/index.d.ts +2 -0
- package/Engines/AbstractEngine/index.js +4 -0
- package/Engines/AbstractEngine/index.js.map +1 -1
- package/Engines/Extensions/engine.textureSelector.d.ts +2 -45
- package/Engines/Extensions/engine.textureSelector.js +8 -68
- package/Engines/Extensions/engine.textureSelector.js.map +1 -1
- package/Engines/abstractEngine.js +2 -2
- package/Engines/abstractEngine.js.map +1 -1
- package/FlowGraph/flowGraph.d.ts +22 -0
- package/FlowGraph/flowGraph.js +11 -0
- package/FlowGraph/flowGraph.js.map +1 -1
- package/FlowGraph/flowGraphCoordinator.d.ts +2 -1
- package/FlowGraph/flowGraphCoordinator.js +4 -2
- package/FlowGraph/flowGraphCoordinator.js.map +1 -1
- package/FlowGraph/flowGraphParser.js +7 -0
- package/FlowGraph/flowGraphParser.js.map +1 -1
- package/FlowGraph/typeDefinitions.d.ts +8 -0
- package/FlowGraph/typeDefinitions.js.map +1 -1
- package/Lights/Clustered/clusteredLightContainer.d.ts +1 -0
- package/Lights/Clustered/clusteredLightContainer.js +19 -0
- package/Lights/Clustered/clusteredLightContainer.js.map +1 -1
- package/Materials/GaussianSplatting/gaussianSplattingMaterial.js +6 -2
- package/Materials/GaussianSplatting/gaussianSplattingMaterial.js.map +1 -1
- package/Meshes/GaussianSplatting/gaussianSplattingMesh.d.ts +13 -0
- package/Meshes/GaussianSplatting/gaussianSplattingMesh.js +26 -0
- package/Meshes/GaussianSplatting/gaussianSplattingMesh.js.map +1 -1
- package/Meshes/GaussianSplatting/gaussianSplattingMeshBase.d.ts +3 -0
- package/Meshes/GaussianSplatting/gaussianSplattingMeshBase.js +113 -10
- package/Meshes/GaussianSplatting/gaussianSplattingMeshBase.js.map +1 -1
- package/Meshes/mesh.d.ts +4 -2
- package/Meshes/mesh.js +8 -6
- package/Meshes/mesh.js.map +1 -1
- package/Misc/tools.js +1 -1
- package/Misc/tools.js.map +1 -1
- package/Particles/gpuParticleSystem.d.ts +35 -2
- package/Particles/gpuParticleSystem.js +272 -6
- package/Particles/gpuParticleSystem.js.map +1 -1
- package/Particles/thinParticleSystem.js +5 -0
- package/Particles/thinParticleSystem.js.map +1 -1
- package/Rendering/depthRenderer.d.ts +8 -0
- package/Rendering/depthRenderer.js +48 -13
- package/Rendering/depthRenderer.js.map +1 -1
- package/Rendering/depthRendererSceneComponent.d.ts +1 -0
- package/Rendering/depthRendererSceneComponent.js +26 -0
- package/Rendering/depthRendererSceneComponent.js.map +1 -1
- package/Shaders/gpuRenderParticles.vertex.js +7 -0
- package/Shaders/gpuRenderParticles.vertex.js.map +1 -1
- package/XR/features/WebXRBodyTracking.d.ts +952 -0
- package/XR/features/WebXRBodyTracking.js +2221 -0
- package/XR/features/WebXRBodyTracking.js.map +1 -0
- package/XR/features/index.d.ts +1 -0
- package/XR/features/index.js +1 -0
- package/XR/features/index.js.map +1 -1
- package/XR/webXRFeaturesManager.d.ts +7 -0
- package/XR/webXRFeaturesManager.js +4 -0
- package/XR/webXRFeaturesManager.js.map +1 -1
- package/package.json +1 -1
- package/sceneComponent.d.ts +1 -0
- package/sceneComponent.js +1 -0
- 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) {
|