@babylonjs/node-editor 6.23.0 → 6.23.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.
@@ -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/core/Helpers/sceneHelpers";
|
187
188
|
import "@babylonjs/core/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;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@babylonjs/node-editor",
|
3
|
-
"version": "6.23.
|
3
|
+
"version": "6.23.1",
|
4
4
|
"main": "dist/babylon.nodeEditor.max.js",
|
5
5
|
"module": "dist/babylon.nodeEditor.max.js",
|
6
6
|
"esnext": "dist/babylon.nodeEditor.max.js",
|
@@ -23,7 +23,7 @@
|
|
23
23
|
"@types/react-dom": ">=16.0.9"
|
24
24
|
},
|
25
25
|
"devDependencies": {
|
26
|
-
"@babylonjs/core": "^6.23.
|
26
|
+
"@babylonjs/core": "^6.23.1",
|
27
27
|
"react": "^17.0.2",
|
28
28
|
"react-dom": "^17.0.2"
|
29
29
|
},
|