@babylonjs/core 7.25.2 → 7.26.1
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/Extensions/engine.prefilteredCubeTexture.d.ts +0 -1
- package/Engines/Extensions/engine.prefilteredCubeTexture.js +0 -1
- package/Engines/Extensions/engine.prefilteredCubeTexture.js.map +1 -1
- package/Engines/Extensions/engine.readTexture.d.ts +2 -9
- package/Engines/Extensions/engine.readTexture.js +3 -76
- package/Engines/Extensions/engine.readTexture.js.map +1 -1
- package/Engines/WebGPU/Extensions/engine.alpha.js +3 -3
- package/Engines/WebGPU/Extensions/engine.alpha.js.map +1 -1
- package/Engines/WebGPU/Extensions/engine.cubeTexture.js +5 -5
- package/Engines/WebGPU/Extensions/engine.cubeTexture.js.map +1 -1
- package/Engines/WebGPU/Extensions/engine.rawTexture.js +10 -10
- package/Engines/WebGPU/Extensions/engine.rawTexture.js.map +1 -1
- package/Engines/WebGPU/Extensions/engine.readTexture.js +3 -3
- package/Engines/WebGPU/Extensions/engine.readTexture.js.map +1 -1
- package/Engines/WebGPU/Extensions/engine.renderTarget.js +6 -6
- package/Engines/WebGPU/Extensions/engine.renderTarget.js.map +1 -1
- package/Engines/WebGPU/Extensions/engine.renderTargetCube.js +2 -2
- package/Engines/WebGPU/Extensions/engine.renderTargetCube.js.map +1 -1
- package/Engines/WebGPU/Extensions/engine.renderTargetTexture.js +2 -2
- package/Engines/WebGPU/Extensions/engine.renderTargetTexture.js.map +1 -1
- package/Engines/WebGPU/webgpuBufferManager.js +1 -1
- package/Engines/WebGPU/webgpuBufferManager.js.map +1 -1
- package/Engines/WebGPU/webgpuRenderTargetWrapper.d.ts +2 -2
- package/Engines/WebGPU/webgpuRenderTargetWrapper.js.map +1 -1
- package/Engines/abstractEngine.d.ts +2 -0
- package/Engines/abstractEngine.functions.d.ts +9 -0
- package/Engines/abstractEngine.functions.js +76 -0
- package/Engines/abstractEngine.functions.js.map +1 -1
- package/Engines/abstractEngine.js +2 -2
- package/Engines/abstractEngine.js.map +1 -1
- package/Engines/engine.d.ts +7 -5
- package/Engines/engine.js +7 -0
- package/Engines/engine.js.map +1 -1
- package/Engines/thinWebGPUEngine.d.ts +66 -0
- package/Engines/thinWebGPUEngine.js +120 -0
- package/Engines/thinWebGPUEngine.js.map +1 -0
- package/Engines/webgpuEngine.d.ts +9 -58
- package/Engines/webgpuEngine.js +9 -108
- package/Engines/webgpuEngine.js.map +1 -1
- package/Materials/Node/Blocks/Dual/imageSourceBlock.d.ts +4 -0
- package/Materials/Node/Blocks/Dual/imageSourceBlock.js +17 -0
- package/Materials/Node/Blocks/Dual/imageSourceBlock.js.map +1 -1
- package/Materials/Node/Blocks/Dual/textureBlock.d.ts +2 -0
- package/Materials/Node/Blocks/Dual/textureBlock.js +30 -23
- package/Materials/Node/Blocks/Dual/textureBlock.js.map +1 -1
- package/Materials/Node/Blocks/colorConverterBlock.d.ts +36 -0
- package/Materials/Node/Blocks/colorConverterBlock.js +192 -0
- package/Materials/Node/Blocks/colorConverterBlock.js.map +1 -0
- package/Materials/Node/Blocks/index.d.ts +4 -0
- package/Materials/Node/Blocks/index.js +4 -0
- package/Materials/Node/Blocks/index.js.map +1 -1
- package/Materials/Node/Blocks/loopBlock.d.ts +49 -0
- package/Materials/Node/Blocks/loopBlock.js +110 -0
- package/Materials/Node/Blocks/loopBlock.js.map +1 -0
- package/Materials/Node/Blocks/storageReadBlock.d.ts +27 -0
- package/Materials/Node/Blocks/storageReadBlock.js +52 -0
- package/Materials/Node/Blocks/storageReadBlock.js.map +1 -0
- package/Materials/Node/Blocks/storageWriteBlock.d.ts +31 -0
- package/Materials/Node/Blocks/storageWriteBlock.js +62 -0
- package/Materials/Node/Blocks/storageWriteBlock.js.map +1 -0
- package/Materials/Node/nodeMaterial.d.ts +1 -0
- package/Materials/Node/nodeMaterial.js +44 -12
- package/Materials/Node/nodeMaterial.js.map +1 -1
- package/Materials/Node/nodeMaterialBlock.d.ts +6 -0
- package/Materials/Node/nodeMaterialBlock.js +46 -3
- package/Materials/Node/nodeMaterialBlock.js.map +1 -1
- package/Materials/Node/nodeMaterialBlockConnectionPoint.d.ts +6 -0
- package/Materials/Node/nodeMaterialBlockConnectionPoint.js +9 -0
- package/Materials/Node/nodeMaterialBlockConnectionPoint.js.map +1 -1
- package/Materials/Node/nodeMaterialBuildState.d.ts +4 -1
- package/Materials/Node/nodeMaterialBuildState.js +2 -0
- package/Materials/Node/nodeMaterialBuildState.js.map +1 -1
- package/Materials/Textures/Filtering/hdrFiltering.d.ts +0 -1
- package/Materials/Textures/Filtering/hdrFiltering.js +0 -1
- package/Materials/Textures/Filtering/hdrFiltering.js.map +1 -1
- package/Materials/Textures/Loaders/basisTextureLoader.d.ts +0 -1
- package/Materials/Textures/Loaders/basisTextureLoader.js +0 -1
- package/Materials/Textures/Loaders/basisTextureLoader.js.map +1 -1
- package/Materials/Textures/Loaders/ddsTextureLoader.d.ts +0 -1
- package/Materials/Textures/Loaders/ddsTextureLoader.js +0 -1
- package/Materials/Textures/Loaders/ddsTextureLoader.js.map +1 -1
- package/Materials/Textures/Loaders/ktxTextureLoader.d.ts +0 -1
- package/Materials/Textures/Loaders/ktxTextureLoader.js +0 -1
- package/Materials/Textures/Loaders/ktxTextureLoader.js.map +1 -1
- package/Materials/Textures/Procedurals/proceduralTexture.d.ts +0 -2
- package/Materials/Textures/Procedurals/proceduralTexture.js +0 -2
- package/Materials/Textures/Procedurals/proceduralTexture.js.map +1 -1
- package/Materials/Textures/baseTexture.d.ts +0 -1
- package/Materials/Textures/baseTexture.js +0 -1
- package/Materials/Textures/baseTexture.js.map +1 -1
- package/Materials/Textures/colorGradingTexture.d.ts +0 -1
- package/Materials/Textures/colorGradingTexture.js +0 -2
- package/Materials/Textures/colorGradingTexture.js.map +1 -1
- package/Materials/Textures/cubeTexture.d.ts +0 -2
- package/Materials/Textures/cubeTexture.js +0 -2
- package/Materials/Textures/cubeTexture.js.map +1 -1
- package/Materials/Textures/equiRectangularCubeTexture.d.ts +0 -1
- package/Materials/Textures/equiRectangularCubeTexture.js +0 -1
- package/Materials/Textures/equiRectangularCubeTexture.js.map +1 -1
- package/Materials/Textures/hdrCubeTexture.d.ts +0 -1
- package/Materials/Textures/hdrCubeTexture.js +0 -1
- package/Materials/Textures/hdrCubeTexture.js.map +1 -1
- package/Materials/Textures/rawCubeTexture.d.ts +0 -1
- package/Materials/Textures/rawCubeTexture.js +0 -1
- package/Materials/Textures/rawCubeTexture.js.map +1 -1
- package/Materials/Textures/rawTexture.d.ts +0 -1
- package/Materials/Textures/rawTexture.js +0 -1
- package/Materials/Textures/rawTexture.js.map +1 -1
- package/Materials/Textures/rawTexture2DArray.d.ts +0 -1
- package/Materials/Textures/rawTexture2DArray.js +0 -1
- package/Materials/Textures/rawTexture2DArray.js.map +1 -1
- package/Materials/Textures/rawTexture3D.d.ts +0 -1
- package/Materials/Textures/rawTexture3D.js +0 -1
- package/Materials/Textures/rawTexture3D.js.map +1 -1
- package/Materials/Textures/renderTargetTexture.d.ts +2 -3
- package/Materials/Textures/renderTargetTexture.js +13 -5
- package/Materials/Textures/renderTargetTexture.js.map +1 -1
- package/Materials/effectRenderer.d.ts +0 -1
- package/Materials/effectRenderer.js +0 -2
- package/Materials/effectRenderer.js.map +1 -1
- package/Materials/material.detailMapConfiguration.d.ts +2 -2
- package/Materials/material.detailMapConfiguration.js.map +1 -1
- package/Materials/uniformBuffer.d.ts +0 -1
- package/Materials/uniformBuffer.js +0 -1
- package/Materials/uniformBuffer.js.map +1 -1
- package/Meshes/GaussianSplatting/gaussianSplattingMesh.d.ts +3 -1
- package/Meshes/GaussianSplatting/gaussianSplattingMesh.js +19 -8
- package/Meshes/GaussianSplatting/gaussianSplattingMesh.js.map +1 -1
- package/Misc/basis.d.ts +3 -3
- package/Misc/basis.js.map +1 -1
- package/Misc/dds.d.ts +0 -1
- package/Misc/dds.js +0 -1
- package/Misc/dds.js.map +1 -1
- package/Misc/dumpTools.js +103 -82
- package/Misc/dumpTools.js.map +1 -1
- package/Misc/environmentTextureTools.d.ts +0 -2
- package/Misc/environmentTextureTools.js +0 -2
- package/Misc/environmentTextureTools.js.map +1 -1
- package/Misc/index.d.ts +2 -0
- package/Misc/index.js +3 -0
- package/Misc/index.js.map +1 -1
- package/Misc/minMaxReducer.d.ts +0 -1
- package/Misc/minMaxReducer.js +0 -1
- package/Misc/minMaxReducer.js.map +1 -1
- package/Misc/rgbdTextureTools.d.ts +0 -2
- package/Misc/rgbdTextureTools.js +5 -10
- package/Misc/rgbdTextureTools.js.map +1 -1
- package/Misc/screenshotTools.d.ts +0 -1
- package/Misc/screenshotTools.js +0 -1
- package/Misc/screenshotTools.js.map +1 -1
- package/Misc/textureTools.d.ts +0 -2
- package/Misc/textureTools.js +11 -2
- package/Misc/textureTools.js.map +1 -1
- package/Particles/particleSystem.js.map +1 -1
- package/Particles/thinParticleSystem.js.map +1 -1
- package/PostProcesses/anaglyphPostProcess.d.ts +2 -2
- package/PostProcesses/anaglyphPostProcess.js.map +1 -1
- package/PostProcesses/highlightsPostProcess.d.ts +2 -2
- package/PostProcesses/highlightsPostProcess.js.map +1 -1
- package/PostProcesses/postProcess.d.ts +0 -2
- package/PostProcesses/postProcess.js +0 -2
- package/PostProcesses/postProcess.js.map +1 -1
- package/PostProcesses/stereoscopicInterlacePostProcess.d.ts +3 -3
- package/PostProcesses/stereoscopicInterlacePostProcess.js.map +1 -1
- package/PostProcesses/tonemapPostProcess.d.ts +2 -2
- package/PostProcesses/tonemapPostProcess.js.map +1 -1
- package/package.json +1 -1
|
@@ -530,12 +530,7 @@ export class NodeMaterial extends PushMaterial {
|
|
|
530
530
|
}
|
|
531
531
|
this._initializeBlock(block, state, nodesToProcessForOtherBuildState, autoConfigure);
|
|
532
532
|
}
|
|
533
|
-
|
|
534
|
-
node.initialize(state);
|
|
535
|
-
if (autoConfigure) {
|
|
536
|
-
node.autoConfigure(this);
|
|
537
|
-
}
|
|
538
|
-
node._preparationId = this._buildId;
|
|
533
|
+
_attachBlock(node) {
|
|
539
534
|
if (this.attachedBlocks.indexOf(node) === -1) {
|
|
540
535
|
if (node.isUnique) {
|
|
541
536
|
const className = node.getClassName();
|
|
@@ -548,18 +543,41 @@ export class NodeMaterial extends PushMaterial {
|
|
|
548
543
|
}
|
|
549
544
|
this.attachedBlocks.push(node);
|
|
550
545
|
}
|
|
546
|
+
}
|
|
547
|
+
_initializeBlock(node, state, nodesToProcessForOtherBuildState, autoConfigure = true) {
|
|
548
|
+
node.initialize(state);
|
|
549
|
+
if (autoConfigure) {
|
|
550
|
+
node.autoConfigure(this);
|
|
551
|
+
}
|
|
552
|
+
node._preparationId = this._buildId;
|
|
553
|
+
this._attachBlock(node);
|
|
551
554
|
for (const input of node.inputs) {
|
|
552
555
|
input.associatedVariableName = "";
|
|
553
556
|
const connectedPoint = input.connectedPoint;
|
|
554
|
-
if (connectedPoint) {
|
|
557
|
+
if (connectedPoint && !connectedPoint._preventBubbleUp) {
|
|
555
558
|
const block = connectedPoint.ownerBlock;
|
|
556
559
|
if (block !== node) {
|
|
557
560
|
this._processInitializeOnLink(block, state, nodesToProcessForOtherBuildState, autoConfigure);
|
|
558
561
|
}
|
|
559
562
|
}
|
|
560
563
|
}
|
|
561
|
-
//
|
|
562
|
-
if (node.
|
|
564
|
+
// Loop
|
|
565
|
+
if (node.isLoop) {
|
|
566
|
+
// We need to keep the storage write block in the active blocks
|
|
567
|
+
const loopBlock = node;
|
|
568
|
+
if (loopBlock.loopID.hasEndpoints) {
|
|
569
|
+
for (const endpoint of loopBlock.loopID.endpoints) {
|
|
570
|
+
const block = endpoint.ownerBlock;
|
|
571
|
+
if (block.outputs.length !== 0) {
|
|
572
|
+
continue;
|
|
573
|
+
}
|
|
574
|
+
state._terminalBlocks.add(block); // Attach the storage write only
|
|
575
|
+
this._processInitializeOnLink(block, state, nodesToProcessForOtherBuildState, autoConfigure);
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
else if (node.isTeleportOut) {
|
|
580
|
+
// Teleportation
|
|
563
581
|
const teleport = node;
|
|
564
582
|
if (teleport.entryPoint) {
|
|
565
583
|
this._processInitializeOnLink(teleport.entryPoint, state, nodesToProcessForOtherBuildState, autoConfigure);
|
|
@@ -573,9 +591,9 @@ export class NodeMaterial extends PushMaterial {
|
|
|
573
591
|
if (node.target === NodeMaterialBlockTargets.VertexAndFragment) {
|
|
574
592
|
node.buildId = id;
|
|
575
593
|
}
|
|
576
|
-
for (const
|
|
577
|
-
const connectedPoint =
|
|
578
|
-
if (connectedPoint) {
|
|
594
|
+
for (const input of node.inputs) {
|
|
595
|
+
const connectedPoint = input.connectedPoint;
|
|
596
|
+
if (connectedPoint && !connectedPoint._preventBubbleUp) {
|
|
579
597
|
const block = connectedPoint.ownerBlock;
|
|
580
598
|
if (block !== node) {
|
|
581
599
|
this._resetDualBlocks(block, id);
|
|
@@ -589,6 +607,19 @@ export class NodeMaterial extends PushMaterial {
|
|
|
589
607
|
this._resetDualBlocks(teleportOut.entryPoint, id);
|
|
590
608
|
}
|
|
591
609
|
}
|
|
610
|
+
else if (node.isLoop) {
|
|
611
|
+
// Loop
|
|
612
|
+
const loopBlock = node;
|
|
613
|
+
if (loopBlock.loopID.hasEndpoints) {
|
|
614
|
+
for (const endpoint of loopBlock.loopID.endpoints) {
|
|
615
|
+
const block = endpoint.ownerBlock;
|
|
616
|
+
if (block.outputs.length !== 0) {
|
|
617
|
+
continue;
|
|
618
|
+
}
|
|
619
|
+
this._resetDualBlocks(block, id);
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
}
|
|
592
623
|
}
|
|
593
624
|
/**
|
|
594
625
|
* Remove a block from the current node material
|
|
@@ -1416,6 +1447,7 @@ export class NodeMaterial extends PushMaterial {
|
|
|
1416
1447
|
this._vertexOutputNodes.length = 0;
|
|
1417
1448
|
this._fragmentOutputNodes.length = 0;
|
|
1418
1449
|
this.attachedBlocks.length = 0;
|
|
1450
|
+
this._buildIsInProgress = false;
|
|
1419
1451
|
}
|
|
1420
1452
|
/**
|
|
1421
1453
|
* Clear the current material and set it to a default state
|