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.
package/babylon.nodeEditor.d.ts
CHANGED
|
@@ -69,6 +69,9 @@ declare module BABYLON.NodeEditor {
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
*/
|
|
72
75
|
export class PreviewManager {
|
|
73
76
|
private _nodeMaterial;
|
|
74
77
|
private _onBuildObserver;
|
|
@@ -79,6 +82,7 @@ declare module BABYLON.NodeEditor {
|
|
|
79
82
|
private _onBackFaceCullingChangedObserver;
|
|
80
83
|
private _onDepthPrePassChangedObserver;
|
|
81
84
|
private _onLightUpdatedObserver;
|
|
85
|
+
private _onBackgroundHDRUpdatedObserver;
|
|
82
86
|
private _engine;
|
|
83
87
|
private _scene;
|
|
84
88
|
private _meshes;
|
|
@@ -91,12 +95,19 @@ declare module BABYLON.NodeEditor {
|
|
|
91
95
|
private _proceduralTexture;
|
|
92
96
|
private _particleSystem;
|
|
93
97
|
private _layer;
|
|
98
|
+
private _hdrSkyBox;
|
|
99
|
+
private _hdrTexture;
|
|
94
100
|
private _serializeMaterial;
|
|
95
101
|
constructor(targetCanvas: HTMLCanvasElement, globalState: GlobalState);
|
|
96
102
|
private _reset;
|
|
97
103
|
private _handleAnimations;
|
|
98
104
|
private _prepareLights;
|
|
105
|
+
private _prepareBackgroundHDR;
|
|
99
106
|
private _prepareScene;
|
|
107
|
+
/**
|
|
108
|
+
* Default Environment URL
|
|
109
|
+
*/
|
|
110
|
+
static DefaultEnvironmentURL: string;
|
|
100
111
|
private _refreshPreviewMesh;
|
|
101
112
|
private _loadParticleSystem;
|
|
102
113
|
private _forceCompilationAsync;
|
|
@@ -112,6 +123,7 @@ declare module BABYLON.NodeEditor {
|
|
|
112
123
|
export class PreviewMeshControlComponent extends React.Component<IPreviewMeshControlComponent> {
|
|
113
124
|
private _colorInputRef;
|
|
114
125
|
private _filePickerRef;
|
|
126
|
+
private _envPickerRef;
|
|
115
127
|
private _onResetRequiredObserver;
|
|
116
128
|
private _onDropEventObserver;
|
|
117
129
|
private _onRefreshPreviewMeshControlComponentRequiredObserver;
|
|
@@ -119,6 +131,7 @@ declare module BABYLON.NodeEditor {
|
|
|
119
131
|
componentWillUnmount(): void;
|
|
120
132
|
changeMeshType(newOne: PreviewType): void;
|
|
121
133
|
useCustomMesh(evt: any): void;
|
|
134
|
+
useCustomEnv(evt: any): void;
|
|
122
135
|
onPopUp(): void;
|
|
123
136
|
changeAnimation(): void;
|
|
124
137
|
changeBackground(value: string): void;
|
|
@@ -140,7 +153,8 @@ declare module BABYLON.NodeEditor {
|
|
|
140
153
|
Rain = 9,
|
|
141
154
|
Explosion = 10,
|
|
142
155
|
Fire = 11,
|
|
143
|
-
Custom = 12
|
|
156
|
+
Custom = 12,
|
|
157
|
+
Room = 13
|
|
144
158
|
}
|
|
145
159
|
|
|
146
160
|
|
|
@@ -270,6 +284,7 @@ declare module BABYLON.NodeEditor {
|
|
|
270
284
|
onIsLoadingChanged: BABYLON.Observable<boolean>;
|
|
271
285
|
onPreviewCommandActivated: BABYLON.Observable<boolean>;
|
|
272
286
|
onLightUpdated: BABYLON.Observable<void>;
|
|
287
|
+
onBackgroundHDRUpdated: BABYLON.Observable<void>;
|
|
273
288
|
onPreviewBackgroundChanged: BABYLON.Observable<void>;
|
|
274
289
|
onBackFaceCullingChanged: BABYLON.Observable<void>;
|
|
275
290
|
onDepthPrePassChanged: BABYLON.Observable<void>;
|
|
@@ -280,6 +295,8 @@ declare module BABYLON.NodeEditor {
|
|
|
280
295
|
onGetNodeFromBlock: (block: BABYLON.NodeMaterialBlock) => BABYLON.NodeEditor.SharedUIComponents.GraphNode;
|
|
281
296
|
previewType: PreviewType;
|
|
282
297
|
previewFile: File;
|
|
298
|
+
envType: PreviewType;
|
|
299
|
+
envFile: File;
|
|
283
300
|
particleSystemBlendMode: number;
|
|
284
301
|
listOfCustomPreviewFiles: File[];
|
|
285
302
|
rotatePreview: boolean;
|
|
@@ -290,6 +307,7 @@ declare module BABYLON.NodeEditor {
|
|
|
290
307
|
hemisphericLight: boolean;
|
|
291
308
|
directionalLight0: boolean;
|
|
292
309
|
directionalLight1: boolean;
|
|
310
|
+
backgroundHDR: boolean;
|
|
293
311
|
controlCamera: boolean;
|
|
294
312
|
_mode: BABYLON.NodeMaterialModes;
|
|
295
313
|
pointerOverCanvas: boolean;
|