babylonjs-node-editor 6.23.0 → 6.24.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.
|
@@ -184,7 +184,11 @@ export {};
|
|
|
184
184
|
}
|
|
185
185
|
declare module "babylonjs-node-editor/components/preview/previewManager" {
|
|
186
186
|
import { GlobalState } from "babylonjs-node-editor/globalState";
|
|
187
|
+
import "babylonjs/Helpers/sceneHelpers";
|
|
187
188
|
import "babylonjs/Rendering/depthRendererSceneComponent";
|
|
189
|
+
/**
|
|
190
|
+
*
|
|
191
|
+
*/
|
|
188
192
|
export class PreviewManager {
|
|
189
193
|
private _nodeMaterial;
|
|
190
194
|
private _onBuildObserver;
|
|
@@ -195,6 +199,7 @@ export class PreviewManager {
|
|
|
195
199
|
private _onBackFaceCullingChangedObserver;
|
|
196
200
|
private _onDepthPrePassChangedObserver;
|
|
197
201
|
private _onLightUpdatedObserver;
|
|
202
|
+
private _onBackgroundHDRUpdatedObserver;
|
|
198
203
|
private _engine;
|
|
199
204
|
private _scene;
|
|
200
205
|
private _meshes;
|
|
@@ -207,12 +212,19 @@ export class PreviewManager {
|
|
|
207
212
|
private _proceduralTexture;
|
|
208
213
|
private _particleSystem;
|
|
209
214
|
private _layer;
|
|
215
|
+
private _hdrSkyBox;
|
|
216
|
+
private _hdrTexture;
|
|
210
217
|
private _serializeMaterial;
|
|
211
218
|
constructor(targetCanvas: HTMLCanvasElement, globalState: GlobalState);
|
|
212
219
|
private _reset;
|
|
213
220
|
private _handleAnimations;
|
|
214
221
|
private _prepareLights;
|
|
222
|
+
private _prepareBackgroundHDR;
|
|
215
223
|
private _prepareScene;
|
|
224
|
+
/**
|
|
225
|
+
* Default Environment URL
|
|
226
|
+
*/
|
|
227
|
+
static DefaultEnvironmentURL: string;
|
|
216
228
|
private _refreshPreviewMesh;
|
|
217
229
|
private _loadParticleSystem;
|
|
218
230
|
private _forceCompilationAsync;
|
|
@@ -232,6 +244,7 @@ interface IPreviewMeshControlComponent {
|
|
|
232
244
|
export class PreviewMeshControlComponent extends React.Component<IPreviewMeshControlComponent> {
|
|
233
245
|
private _colorInputRef;
|
|
234
246
|
private _filePickerRef;
|
|
247
|
+
private _envPickerRef;
|
|
235
248
|
private _onResetRequiredObserver;
|
|
236
249
|
private _onDropEventObserver;
|
|
237
250
|
private _onRefreshPreviewMeshControlComponentRequiredObserver;
|
|
@@ -239,6 +252,7 @@ export class PreviewMeshControlComponent extends React.Component<IPreviewMeshCon
|
|
|
239
252
|
componentWillUnmount(): void;
|
|
240
253
|
changeMeshType(newOne: PreviewType): void;
|
|
241
254
|
useCustomMesh(evt: any): void;
|
|
255
|
+
useCustomEnv(evt: any): void;
|
|
242
256
|
onPopUp(): void;
|
|
243
257
|
changeAnimation(): void;
|
|
244
258
|
changeBackground(value: string): void;
|
|
@@ -262,7 +276,8 @@ export enum PreviewType {
|
|
|
262
276
|
Rain = 9,
|
|
263
277
|
Explosion = 10,
|
|
264
278
|
Fire = 11,
|
|
265
|
-
Custom = 12
|
|
279
|
+
Custom = 12,
|
|
280
|
+
Room = 13
|
|
266
281
|
}
|
|
267
282
|
|
|
268
283
|
}
|
|
@@ -466,6 +481,7 @@ export class GlobalState {
|
|
|
466
481
|
onIsLoadingChanged: Observable<boolean>;
|
|
467
482
|
onPreviewCommandActivated: Observable<boolean>;
|
|
468
483
|
onLightUpdated: Observable<void>;
|
|
484
|
+
onBackgroundHDRUpdated: Observable<void>;
|
|
469
485
|
onPreviewBackgroundChanged: Observable<void>;
|
|
470
486
|
onBackFaceCullingChanged: Observable<void>;
|
|
471
487
|
onDepthPrePassChanged: Observable<void>;
|
|
@@ -476,6 +492,8 @@ export class GlobalState {
|
|
|
476
492
|
onGetNodeFromBlock: (block: NodeMaterialBlock) => GraphNode;
|
|
477
493
|
previewType: PreviewType;
|
|
478
494
|
previewFile: File;
|
|
495
|
+
envType: PreviewType;
|
|
496
|
+
envFile: File;
|
|
479
497
|
particleSystemBlendMode: number;
|
|
480
498
|
listOfCustomPreviewFiles: File[];
|
|
481
499
|
rotatePreview: boolean;
|
|
@@ -486,6 +504,7 @@ export class GlobalState {
|
|
|
486
504
|
hemisphericLight: boolean;
|
|
487
505
|
directionalLight0: boolean;
|
|
488
506
|
directionalLight1: boolean;
|
|
507
|
+
backgroundHDR: boolean;
|
|
489
508
|
controlCamera: boolean;
|
|
490
509
|
_mode: NodeMaterialModes;
|
|
491
510
|
pointerOverCanvas: boolean;
|
|
@@ -4495,6 +4514,9 @@ declare module BABYLON.NodeEditor {
|
|
|
4495
4514
|
}
|
|
4496
4515
|
|
|
4497
4516
|
|
|
4517
|
+
/**
|
|
4518
|
+
*
|
|
4519
|
+
*/
|
|
4498
4520
|
export class PreviewManager {
|
|
4499
4521
|
private _nodeMaterial;
|
|
4500
4522
|
private _onBuildObserver;
|
|
@@ -4505,6 +4527,7 @@ declare module BABYLON.NodeEditor {
|
|
|
4505
4527
|
private _onBackFaceCullingChangedObserver;
|
|
4506
4528
|
private _onDepthPrePassChangedObserver;
|
|
4507
4529
|
private _onLightUpdatedObserver;
|
|
4530
|
+
private _onBackgroundHDRUpdatedObserver;
|
|
4508
4531
|
private _engine;
|
|
4509
4532
|
private _scene;
|
|
4510
4533
|
private _meshes;
|
|
@@ -4517,12 +4540,19 @@ declare module BABYLON.NodeEditor {
|
|
|
4517
4540
|
private _proceduralTexture;
|
|
4518
4541
|
private _particleSystem;
|
|
4519
4542
|
private _layer;
|
|
4543
|
+
private _hdrSkyBox;
|
|
4544
|
+
private _hdrTexture;
|
|
4520
4545
|
private _serializeMaterial;
|
|
4521
4546
|
constructor(targetCanvas: HTMLCanvasElement, globalState: GlobalState);
|
|
4522
4547
|
private _reset;
|
|
4523
4548
|
private _handleAnimations;
|
|
4524
4549
|
private _prepareLights;
|
|
4550
|
+
private _prepareBackgroundHDR;
|
|
4525
4551
|
private _prepareScene;
|
|
4552
|
+
/**
|
|
4553
|
+
* Default Environment URL
|
|
4554
|
+
*/
|
|
4555
|
+
static DefaultEnvironmentURL: string;
|
|
4526
4556
|
private _refreshPreviewMesh;
|
|
4527
4557
|
private _loadParticleSystem;
|
|
4528
4558
|
private _forceCompilationAsync;
|
|
@@ -4538,6 +4568,7 @@ declare module BABYLON.NodeEditor {
|
|
|
4538
4568
|
export class PreviewMeshControlComponent extends React.Component<IPreviewMeshControlComponent> {
|
|
4539
4569
|
private _colorInputRef;
|
|
4540
4570
|
private _filePickerRef;
|
|
4571
|
+
private _envPickerRef;
|
|
4541
4572
|
private _onResetRequiredObserver;
|
|
4542
4573
|
private _onDropEventObserver;
|
|
4543
4574
|
private _onRefreshPreviewMeshControlComponentRequiredObserver;
|
|
@@ -4545,6 +4576,7 @@ declare module BABYLON.NodeEditor {
|
|
|
4545
4576
|
componentWillUnmount(): void;
|
|
4546
4577
|
changeMeshType(newOne: PreviewType): void;
|
|
4547
4578
|
useCustomMesh(evt: any): void;
|
|
4579
|
+
useCustomEnv(evt: any): void;
|
|
4548
4580
|
onPopUp(): void;
|
|
4549
4581
|
changeAnimation(): void;
|
|
4550
4582
|
changeBackground(value: string): void;
|
|
@@ -4566,7 +4598,8 @@ declare module BABYLON.NodeEditor {
|
|
|
4566
4598
|
Rain = 9,
|
|
4567
4599
|
Explosion = 10,
|
|
4568
4600
|
Fire = 11,
|
|
4569
|
-
Custom = 12
|
|
4601
|
+
Custom = 12,
|
|
4602
|
+
Room = 13
|
|
4570
4603
|
}
|
|
4571
4604
|
|
|
4572
4605
|
|
|
@@ -4696,6 +4729,7 @@ declare module BABYLON.NodeEditor {
|
|
|
4696
4729
|
onIsLoadingChanged: BABYLON.Observable<boolean>;
|
|
4697
4730
|
onPreviewCommandActivated: BABYLON.Observable<boolean>;
|
|
4698
4731
|
onLightUpdated: BABYLON.Observable<void>;
|
|
4732
|
+
onBackgroundHDRUpdated: BABYLON.Observable<void>;
|
|
4699
4733
|
onPreviewBackgroundChanged: BABYLON.Observable<void>;
|
|
4700
4734
|
onBackFaceCullingChanged: BABYLON.Observable<void>;
|
|
4701
4735
|
onDepthPrePassChanged: BABYLON.Observable<void>;
|
|
@@ -4706,6 +4740,8 @@ declare module BABYLON.NodeEditor {
|
|
|
4706
4740
|
onGetNodeFromBlock: (block: BABYLON.NodeMaterialBlock) => BABYLON.NodeEditor.SharedUIComponents.GraphNode;
|
|
4707
4741
|
previewType: PreviewType;
|
|
4708
4742
|
previewFile: File;
|
|
4743
|
+
envType: PreviewType;
|
|
4744
|
+
envFile: File;
|
|
4709
4745
|
particleSystemBlendMode: number;
|
|
4710
4746
|
listOfCustomPreviewFiles: File[];
|
|
4711
4747
|
rotatePreview: boolean;
|
|
@@ -4716,6 +4752,7 @@ declare module BABYLON.NodeEditor {
|
|
|
4716
4752
|
hemisphericLight: boolean;
|
|
4717
4753
|
directionalLight0: boolean;
|
|
4718
4754
|
directionalLight1: boolean;
|
|
4755
|
+
backgroundHDR: boolean;
|
|
4719
4756
|
controlCamera: boolean;
|
|
4720
4757
|
_mode: BABYLON.NodeMaterialModes;
|
|
4721
4758
|
pointerOverCanvas: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-node-editor",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.24.0",
|
|
4
4
|
"main": "babylon.nodeEditor.js",
|
|
5
5
|
"types": "babylon.nodeEditor.module.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"clean": "rimraf dist && rimraf babylon*.*"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"babylonjs": "^6.
|
|
17
|
+
"babylonjs": "^6.24.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@dev/build-tools": "1.0.0",
|