@babylonjs/core 8.16.1 → 8.16.3
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.js +2 -2
- package/Engines/abstractEngine.js.map +1 -1
- package/FrameGraph/Node/nodeRenderGraphBlock.js +1 -0
- package/FrameGraph/Node/nodeRenderGraphBlock.js.map +1 -1
- package/Materials/Textures/Loaders/iesTextureLoader.js +1 -1
- package/Materials/Textures/Loaders/iesTextureLoader.js.map +1 -1
- package/Materials/Textures/thinTexture.d.ts +2 -1
- package/Materials/Textures/thinTexture.js +3 -2
- package/Materials/Textures/thinTexture.js.map +1 -1
- package/Meshes/Node/nodeGeometryBlock.js +1 -0
- package/Meshes/Node/nodeGeometryBlock.js.map +1 -1
- package/Meshes/transformNode.js +5 -1
- package/Meshes/transformNode.js.map +1 -1
- package/Particles/Node/Blocks/Emitters/index.d.ts +1 -0
- package/Particles/Node/Blocks/Emitters/index.js +1 -0
- package/Particles/Node/Blocks/Emitters/index.js.map +1 -1
- package/Particles/Node/Blocks/Emitters/meshShapeBlock.d.ts +79 -0
- package/Particles/Node/Blocks/Emitters/meshShapeBlock.js +223 -0
- package/Particles/Node/Blocks/Emitters/meshShapeBlock.js.map +1 -0
- package/Particles/Node/Blocks/Update/updateAttractorBlock.d.ts +39 -0
- package/Particles/Node/Blocks/Update/updateAttractorBlock.js +85 -0
- package/Particles/Node/Blocks/Update/updateAttractorBlock.js.map +1 -0
- package/Particles/Node/Blocks/Update/updateFlowMapBlock.d.ts +1 -1
- package/Particles/Node/Blocks/Update/updateFlowMapBlock.js +1 -1
- package/Particles/Node/Blocks/Update/updateFlowMapBlock.js.map +1 -1
- package/Particles/Node/Blocks/index.d.ts +1 -0
- package/Particles/Node/Blocks/index.js +1 -0
- package/Particles/Node/Blocks/index.js.map +1 -1
- package/Particles/Node/nodeParticleBlock.js +1 -0
- package/Particles/Node/nodeParticleBlock.js.map +1 -1
- package/Particles/Node/nodeParticleSystemSet.js +1 -0
- package/Particles/Node/nodeParticleSystemSet.js.map +1 -1
- package/Particles/particleSystem.d.ts +7 -0
- package/Particles/particleSystem.js +8 -0
- package/Particles/particleSystem.js.map +1 -1
- package/Physics/v2/ragdoll.d.ts +1 -0
- package/Physics/v2/ragdoll.js +15 -1
- package/Physics/v2/ragdoll.js.map +1 -1
- package/PostProcesses/postProcess.js +2 -5
- package/PostProcesses/postProcess.js.map +1 -1
- package/package.json +1 -1
- package/scene.d.ts +19 -0
- package/scene.js +34 -0
- package/scene.js.map +1 -1
package/scene.d.ts
CHANGED
|
@@ -594,6 +594,10 @@ export declare class Scene implements IAnimatable, IClipPlanesHolder, IAssetCont
|
|
|
594
594
|
* An event triggered when a multi material is created
|
|
595
595
|
*/
|
|
596
596
|
onNewMultiMaterialAddedObservable: Observable<MultiMaterial>;
|
|
597
|
+
/**
|
|
598
|
+
* An event triggered when a post process is created
|
|
599
|
+
*/
|
|
600
|
+
onNewPostProcessAddedObservable: Observable<PostProcess>;
|
|
597
601
|
/**
|
|
598
602
|
* An event triggered when a material is removed
|
|
599
603
|
*/
|
|
@@ -618,6 +622,10 @@ export declare class Scene implements IAnimatable, IClipPlanesHolder, IAssetCont
|
|
|
618
622
|
* An event triggered when a frame graph is removed
|
|
619
623
|
*/
|
|
620
624
|
onFrameGraphRemovedObservable: Observable<FrameGraph>;
|
|
625
|
+
/**
|
|
626
|
+
* An event triggered when a post process is removed
|
|
627
|
+
*/
|
|
628
|
+
onPostProcessRemovedObservable: Observable<PostProcess>;
|
|
621
629
|
/**
|
|
622
630
|
* An event triggered when render targets are about to be rendered
|
|
623
631
|
* Can happen multiple times per frame.
|
|
@@ -1659,6 +1667,12 @@ export declare class Scene implements IAnimatable, IClipPlanesHolder, IAssetCont
|
|
|
1659
1667
|
* @returns The index of the removed frame graph
|
|
1660
1668
|
*/
|
|
1661
1669
|
removeFrameGraph(toRemove: FrameGraph): number;
|
|
1670
|
+
/**
|
|
1671
|
+
* Removes the given post-process from this scene.
|
|
1672
|
+
* @param toRemove The post-process to remove
|
|
1673
|
+
* @returns The index of the removed post-process
|
|
1674
|
+
*/
|
|
1675
|
+
removePostProcess(toRemove: PostProcess): number;
|
|
1662
1676
|
/**
|
|
1663
1677
|
* Adds the given light to this scene
|
|
1664
1678
|
* @param newLight The light to add
|
|
@@ -1729,6 +1743,11 @@ export declare class Scene implements IAnimatable, IClipPlanesHolder, IAssetCont
|
|
|
1729
1743
|
* @param newFrameGraph The frame graph to add
|
|
1730
1744
|
*/
|
|
1731
1745
|
addFrameGraph(newFrameGraph: FrameGraph): void;
|
|
1746
|
+
/**
|
|
1747
|
+
* Adds the given post process to this scene.
|
|
1748
|
+
* @param newPostProcess The post process to add
|
|
1749
|
+
*/
|
|
1750
|
+
addPostProcess(newPostProcess: PostProcess): void;
|
|
1732
1751
|
/**
|
|
1733
1752
|
* Switch active camera
|
|
1734
1753
|
* @param newCamera defines the new active camera
|
package/scene.js
CHANGED
|
@@ -1007,6 +1007,10 @@ export class Scene {
|
|
|
1007
1007
|
* An event triggered when a multi material is created
|
|
1008
1008
|
*/
|
|
1009
1009
|
this.onNewMultiMaterialAddedObservable = new Observable();
|
|
1010
|
+
/**
|
|
1011
|
+
* An event triggered when a post process is created
|
|
1012
|
+
*/
|
|
1013
|
+
this.onNewPostProcessAddedObservable = new Observable();
|
|
1010
1014
|
/**
|
|
1011
1015
|
* An event triggered when a material is removed
|
|
1012
1016
|
*/
|
|
@@ -1031,6 +1035,10 @@ export class Scene {
|
|
|
1031
1035
|
* An event triggered when a frame graph is removed
|
|
1032
1036
|
*/
|
|
1033
1037
|
this.onFrameGraphRemovedObservable = new Observable();
|
|
1038
|
+
/**
|
|
1039
|
+
* An event triggered when a post process is removed
|
|
1040
|
+
*/
|
|
1041
|
+
this.onPostProcessRemovedObservable = new Observable();
|
|
1034
1042
|
/**
|
|
1035
1043
|
* An event triggered when render targets are about to be rendered
|
|
1036
1044
|
* Can happen multiple times per frame.
|
|
@@ -2406,6 +2414,19 @@ export class Scene {
|
|
|
2406
2414
|
this.onFrameGraphRemovedObservable.notifyObservers(toRemove);
|
|
2407
2415
|
return index;
|
|
2408
2416
|
}
|
|
2417
|
+
/**
|
|
2418
|
+
* Removes the given post-process from this scene.
|
|
2419
|
+
* @param toRemove The post-process to remove
|
|
2420
|
+
* @returns The index of the removed post-process
|
|
2421
|
+
*/
|
|
2422
|
+
removePostProcess(toRemove) {
|
|
2423
|
+
const index = this.postProcesses.indexOf(toRemove);
|
|
2424
|
+
if (index !== -1) {
|
|
2425
|
+
this.postProcesses.splice(index, 1);
|
|
2426
|
+
}
|
|
2427
|
+
this.onPostProcessRemovedObservable.notifyObservers(toRemove);
|
|
2428
|
+
return index;
|
|
2429
|
+
}
|
|
2409
2430
|
/**
|
|
2410
2431
|
* Adds the given light to this scene
|
|
2411
2432
|
* @param newLight The light to add
|
|
@@ -2586,6 +2607,19 @@ export class Scene {
|
|
|
2586
2607
|
this.onNewFrameGraphAddedObservable.notifyObservers(newFrameGraph);
|
|
2587
2608
|
});
|
|
2588
2609
|
}
|
|
2610
|
+
/**
|
|
2611
|
+
* Adds the given post process to this scene.
|
|
2612
|
+
* @param newPostProcess The post process to add
|
|
2613
|
+
*/
|
|
2614
|
+
addPostProcess(newPostProcess) {
|
|
2615
|
+
if (this._blockEntityCollection) {
|
|
2616
|
+
return;
|
|
2617
|
+
}
|
|
2618
|
+
this.postProcesses.push(newPostProcess);
|
|
2619
|
+
Tools.SetImmediate(() => {
|
|
2620
|
+
this.onNewPostProcessAddedObservable.notifyObservers(newPostProcess);
|
|
2621
|
+
});
|
|
2622
|
+
}
|
|
2589
2623
|
/**
|
|
2590
2624
|
* Switch active camera
|
|
2591
2625
|
* @param newCamera defines the new active camera
|