@babylonjs/viewer 5.0.0 → 5.0.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/configuration/configuration.d.ts +107 -107
- package/configuration/configuration.js +15 -15
- package/configuration/configurationCompatibility.d.ts +8 -8
- package/configuration/configurationCompatibility.js +65 -65
- package/configuration/configurationContainer.d.ts +10 -10
- package/configuration/configurationContainer.js +9 -9
- package/configuration/globals.d.ts +6 -6
- package/configuration/globals.js +17 -17
- package/configuration/index.d.ts +2 -2
- package/configuration/index.js +3 -3
- package/configuration/interfaces/cameraConfiguration.d.ts +31 -31
- package/configuration/interfaces/cameraConfiguration.js +1 -1
- package/configuration/interfaces/colorGradingConfiguration.d.ts +81 -81
- package/configuration/interfaces/colorGradingConfiguration.js +1 -1
- package/configuration/interfaces/defaultRenderingPipelineConfiguration.d.ts +20 -20
- package/configuration/interfaces/defaultRenderingPipelineConfiguration.js +1 -1
- package/configuration/interfaces/environmentMapConfiguration.d.ts +22 -22
- package/configuration/interfaces/environmentMapConfiguration.js +1 -1
- package/configuration/interfaces/groundConfiguration.d.ts +24 -24
- package/configuration/interfaces/groundConfiguration.js +1 -1
- package/configuration/interfaces/imageProcessingConfiguration.d.ts +43 -43
- package/configuration/interfaces/imageProcessingConfiguration.js +1 -1
- package/configuration/interfaces/index.d.ts +15 -15
- package/configuration/interfaces/index.js +15 -15
- package/configuration/interfaces/lightConfiguration.d.ts +60 -60
- package/configuration/interfaces/lightConfiguration.js +1 -1
- package/configuration/interfaces/modelAnimationConfiguration.d.ts +26 -26
- package/configuration/interfaces/modelAnimationConfiguration.js +1 -1
- package/configuration/interfaces/modelConfiguration.d.ts +65 -65
- package/configuration/interfaces/modelConfiguration.js +1 -1
- package/configuration/interfaces/observersConfiguration.d.ts +5 -5
- package/configuration/interfaces/observersConfiguration.js +1 -1
- package/configuration/interfaces/sceneConfiguration.d.ts +48 -48
- package/configuration/interfaces/sceneConfiguration.js +1 -1
- package/configuration/interfaces/sceneOptimizerConfiguration.d.ts +23 -23
- package/configuration/interfaces/sceneOptimizerConfiguration.js +1 -1
- package/configuration/interfaces/skyboxConfiguration.d.ts +21 -21
- package/configuration/interfaces/skyboxConfiguration.js +1 -1
- package/configuration/interfaces/templateConfiguration.d.ts +67 -67
- package/configuration/interfaces/templateConfiguration.js +1 -1
- package/configuration/interfaces/vrConfiguration.d.ts +16 -16
- package/configuration/interfaces/vrConfiguration.js +1 -1
- package/configuration/loader.d.ts +4 -4
- package/configuration/loader.js +16 -16
- package/configuration/mappers.d.ts +42 -42
- package/configuration/mappers.js +190 -190
- package/configuration/renderOnlyLoader.d.ts +33 -33
- package/configuration/renderOnlyLoader.js +161 -161
- package/configuration/types/default.d.ts +6 -6
- package/configuration/types/default.js +120 -120
- package/configuration/types/environmentMap.d.ts +5 -5
- package/configuration/types/environmentMap.js +13 -13
- package/configuration/types/extended.d.ts +6 -6
- package/configuration/types/extended.js +316 -316
- package/configuration/types/index.d.ts +13 -13
- package/configuration/types/index.js +49 -49
- package/configuration/types/minimal.d.ts +6 -6
- package/configuration/types/minimal.js +42 -42
- package/configuration/types/renderOnlyDefault.d.ts +30 -30
- package/configuration/types/renderOnlyDefault.js +30 -30
- package/configuration/types/shadowLight.d.ts +9 -9
- package/configuration/types/shadowLight.js +63 -63
- package/helper/index.d.ts +26 -26
- package/helper/index.js +62 -62
- package/index.d.ts +30 -30
- package/index.js +45 -45
- package/initializer.d.ts +11 -11
- package/initializer.js +34 -34
- package/interfaces.d.ts +5 -5
- package/interfaces.js +1 -1
- package/labs/environmentSerializer.d.ts +126 -126
- package/labs/environmentSerializer.js +190 -190
- package/labs/texture.d.ts +183 -183
- package/labs/texture.js +300 -300
- package/labs/viewerLabs.d.ts +51 -51
- package/labs/viewerLabs.js +133 -133
- package/loader/modelLoader.d.ts +47 -47
- package/loader/modelLoader.js +189 -189
- package/loader/plugins/applyMaterialConfig.d.ts +12 -12
- package/loader/plugins/applyMaterialConfig.js +15 -15
- package/loader/plugins/extendedMaterialLoaderPlugin.d.ts +9 -9
- package/loader/plugins/extendedMaterialLoaderPlugin.js +15 -15
- package/loader/plugins/index.d.ts +18 -18
- package/loader/plugins/index.js +42 -42
- package/loader/plugins/loaderPlugin.d.ts +24 -24
- package/loader/plugins/loaderPlugin.js +1 -1
- package/loader/plugins/msftLodLoaderPlugin.d.ts +12 -12
- package/loader/plugins/msftLodLoaderPlugin.js +20 -20
- package/loader/plugins/telemetryLoaderPlugin.d.ts +12 -12
- package/loader/plugins/telemetryLoaderPlugin.js +35 -35
- package/managers/observablesManager.d.ts +66 -66
- package/managers/observablesManager.js +34 -34
- package/managers/sceneManager.d.ts +243 -243
- package/managers/sceneManager.js +1388 -1388
- package/managers/telemetryManager.d.ts +57 -57
- package/managers/telemetryManager.js +113 -113
- package/model/modelAnimation.d.ts +215 -215
- package/model/modelAnimation.js +232 -232
- package/model/viewerModel.d.ts +228 -228
- package/model/viewerModel.js +669 -669
- package/optimizer/custom/extended.d.ts +11 -11
- package/optimizer/custom/extended.js +98 -98
- package/optimizer/custom/index.d.ts +8 -8
- package/optimizer/custom/index.js +24 -24
- package/package.json +5 -5
- package/renderOnlyIndex.d.ts +11 -11
- package/renderOnlyIndex.js +17 -17
- package/templating/eventManager.d.ts +35 -35
- package/templating/eventManager.js +65 -65
- package/templating/plugins/hdButtonPlugin.d.ts +9 -9
- package/templating/plugins/hdButtonPlugin.js +21 -21
- package/templating/plugins/printButton.d.ts +9 -9
- package/templating/plugins/printButton.js +40 -40
- package/templating/templateManager.d.ts +190 -190
- package/templating/templateManager.js +553 -553
- package/templating/viewerTemplatePlugin.d.ts +21 -21
- package/templating/viewerTemplatePlugin.js +68 -68
- package/viewer/defaultViewer.d.ts +122 -122
- package/viewer/defaultViewer.js +665 -665
- package/viewer/renderOnlyViewer.d.ts +8 -8
- package/viewer/renderOnlyViewer.js +43 -43
- package/viewer/viewer.d.ts +254 -254
- package/viewer/viewer.js +777 -777
- package/viewer/viewerManager.d.ts +55 -55
- package/viewer/viewerManager.js +87 -87
- package/viewer/viewerWithTemplate.d.ts +9 -9
- package/viewer/viewerWithTemplate.js +19 -19
|
@@ -1,317 +1,317 @@
|
|
|
1
|
-
import { Tools } from "@babylonjs/core/Misc/tools.js";
|
|
2
|
-
/**
|
|
3
|
-
* The viewer's "extended" configuration.
|
|
4
|
-
* This configuration defines specific objects and parameters that we think make any model look good.
|
|
5
|
-
*/
|
|
6
|
-
export var extendedConfiguration = {
|
|
7
|
-
version: "3.2.0",
|
|
8
|
-
extends: "default",
|
|
9
|
-
camera: {
|
|
10
|
-
exposure: 3.034578,
|
|
11
|
-
fov: 0.7853981633974483,
|
|
12
|
-
contrast: 1.6,
|
|
13
|
-
toneMappingEnabled: true,
|
|
14
|
-
upperBetaLimit: 1.3962634015954636 + Math.PI / 2,
|
|
15
|
-
lowerBetaLimit: -1.4835298641951802 + Math.PI / 2,
|
|
16
|
-
behaviors: {
|
|
17
|
-
framing: {
|
|
18
|
-
type: 2,
|
|
19
|
-
mode: 0,
|
|
20
|
-
positionScale: 0.5,
|
|
21
|
-
defaultElevation: 0.2617993877991494,
|
|
22
|
-
elevationReturnWaitTime: 3000,
|
|
23
|
-
elevationReturnTime: 2000,
|
|
24
|
-
framingTime: 500,
|
|
25
|
-
zoomStopsAnimation: false,
|
|
26
|
-
radiusScale: 0.866,
|
|
27
|
-
},
|
|
28
|
-
autoRotate: {
|
|
29
|
-
type: 0,
|
|
30
|
-
idleRotationWaitTime: 4000,
|
|
31
|
-
idleRotationSpeed: 0.17453292519943295,
|
|
32
|
-
idleRotationSpinupTime: 2500,
|
|
33
|
-
zoomStopsAnimation: false,
|
|
34
|
-
},
|
|
35
|
-
bouncing: {
|
|
36
|
-
type: 1,
|
|
37
|
-
lowerRadiusTransitionRange: 0.05,
|
|
38
|
-
upperRadiusTransitionRange: -0.2,
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
upperRadiusLimit: 5,
|
|
42
|
-
lowerRadiusLimit: 0.5,
|
|
43
|
-
frameOnModelLoad: true,
|
|
44
|
-
framingElevation: 0.2617993877991494,
|
|
45
|
-
framingRotation: 1.5707963267948966,
|
|
46
|
-
radius: 2,
|
|
47
|
-
alpha: 1.5708,
|
|
48
|
-
beta: Math.PI * 0.5 - 0.2618,
|
|
49
|
-
wheelPrecision: 300,
|
|
50
|
-
minZ: 0.1,
|
|
51
|
-
maxZ: 50,
|
|
52
|
-
fovMode: 0,
|
|
53
|
-
pinchPrecision: 1500,
|
|
54
|
-
panningSensibility: 3000,
|
|
55
|
-
},
|
|
56
|
-
lights: {
|
|
57
|
-
light0: {
|
|
58
|
-
type: 0,
|
|
59
|
-
frustumEdgeFalloff: 0,
|
|
60
|
-
intensity: 7,
|
|
61
|
-
intensityMode: 0,
|
|
62
|
-
radius: 0.6,
|
|
63
|
-
range: 4.4,
|
|
64
|
-
spotAngle: 60,
|
|
65
|
-
diffuse: {
|
|
66
|
-
r: 1,
|
|
67
|
-
g: 1,
|
|
68
|
-
b: 1,
|
|
69
|
-
},
|
|
70
|
-
position: {
|
|
71
|
-
x: -2,
|
|
72
|
-
y: 2.5,
|
|
73
|
-
z: 2,
|
|
74
|
-
},
|
|
75
|
-
target: {
|
|
76
|
-
x: 0,
|
|
77
|
-
y: 0,
|
|
78
|
-
z: 0,
|
|
79
|
-
},
|
|
80
|
-
enabled: true,
|
|
81
|
-
shadowEnabled: true,
|
|
82
|
-
shadowBufferSize: 512,
|
|
83
|
-
shadowMinZ: 1,
|
|
84
|
-
shadowMaxZ: 10,
|
|
85
|
-
shadowFieldOfView: 60,
|
|
86
|
-
shadowFrustumSize: 2,
|
|
87
|
-
shadowConfig: {
|
|
88
|
-
useBlurCloseExponentialShadowMap: true,
|
|
89
|
-
useKernelBlur: true,
|
|
90
|
-
blurScale: 1.0,
|
|
91
|
-
bias: 0.001,
|
|
92
|
-
depthScale: 50 * (10 - 1),
|
|
93
|
-
frustumEdgeFalloff: 0,
|
|
94
|
-
},
|
|
95
|
-
},
|
|
96
|
-
light1: {
|
|
97
|
-
type: 0,
|
|
98
|
-
frustumEdgeFalloff: 0,
|
|
99
|
-
intensity: 7,
|
|
100
|
-
intensityMode: 0,
|
|
101
|
-
radius: 0.4,
|
|
102
|
-
range: 5.8,
|
|
103
|
-
spotAngle: 57,
|
|
104
|
-
diffuse: {
|
|
105
|
-
r: 1,
|
|
106
|
-
g: 1,
|
|
107
|
-
b: 1,
|
|
108
|
-
},
|
|
109
|
-
position: {
|
|
110
|
-
x: 4,
|
|
111
|
-
y: 3,
|
|
112
|
-
z: -0.5,
|
|
113
|
-
},
|
|
114
|
-
target: {
|
|
115
|
-
x: 0,
|
|
116
|
-
y: 0,
|
|
117
|
-
z: 0,
|
|
118
|
-
},
|
|
119
|
-
enabled: true,
|
|
120
|
-
shadowEnabled: false,
|
|
121
|
-
shadowBufferSize: 512,
|
|
122
|
-
shadowMinZ: 0.2,
|
|
123
|
-
shadowMaxZ: 10,
|
|
124
|
-
shadowFieldOfView: 28,
|
|
125
|
-
shadowFrustumSize: 2,
|
|
126
|
-
},
|
|
127
|
-
light2: {
|
|
128
|
-
type: 0,
|
|
129
|
-
frustumEdgeFalloff: 0,
|
|
130
|
-
intensity: 1,
|
|
131
|
-
intensityMode: 0,
|
|
132
|
-
radius: 0.5,
|
|
133
|
-
range: 6,
|
|
134
|
-
spotAngle: 42.85,
|
|
135
|
-
diffuse: {
|
|
136
|
-
r: 0.8,
|
|
137
|
-
g: 0.8,
|
|
138
|
-
b: 0.8,
|
|
139
|
-
},
|
|
140
|
-
position: {
|
|
141
|
-
x: -1,
|
|
142
|
-
y: 3,
|
|
143
|
-
z: -3,
|
|
144
|
-
},
|
|
145
|
-
target: {
|
|
146
|
-
x: 0,
|
|
147
|
-
y: 0,
|
|
148
|
-
z: 0,
|
|
149
|
-
},
|
|
150
|
-
enabled: true,
|
|
151
|
-
shadowEnabled: false,
|
|
152
|
-
shadowBufferSize: 512,
|
|
153
|
-
shadowMinZ: 0.2,
|
|
154
|
-
shadowMaxZ: 10,
|
|
155
|
-
shadowFieldOfView: 45,
|
|
156
|
-
shadowFrustumSize: 2,
|
|
157
|
-
},
|
|
158
|
-
},
|
|
159
|
-
ground: {
|
|
160
|
-
shadowLevel: 0.9,
|
|
161
|
-
texture: "Ground_2.0-1024.png",
|
|
162
|
-
material: {
|
|
163
|
-
primaryColorHighlightLevel: 0.035,
|
|
164
|
-
primaryColorShadowLevel: 0,
|
|
165
|
-
enableNoise: true,
|
|
166
|
-
useRGBColor: false,
|
|
167
|
-
maxSimultaneousLights: 1,
|
|
168
|
-
diffuseTexture: {
|
|
169
|
-
gammaSpace: true,
|
|
170
|
-
},
|
|
171
|
-
},
|
|
172
|
-
opacity: 1,
|
|
173
|
-
mirror: false,
|
|
174
|
-
receiveShadows: true,
|
|
175
|
-
size: 5,
|
|
176
|
-
},
|
|
177
|
-
skybox: {
|
|
178
|
-
scale: 11,
|
|
179
|
-
cubeTexture: {
|
|
180
|
-
url: "Skybox_2.0-256.dds",
|
|
181
|
-
},
|
|
182
|
-
material: {
|
|
183
|
-
primaryColorHighlightLevel: 0.03,
|
|
184
|
-
primaryColorShadowLevel: 0.03,
|
|
185
|
-
enableNoise: true,
|
|
186
|
-
useRGBColor: false,
|
|
187
|
-
reflectionTexture: {
|
|
188
|
-
gammaSpace: true,
|
|
189
|
-
},
|
|
190
|
-
},
|
|
191
|
-
},
|
|
192
|
-
engine: {
|
|
193
|
-
renderInBackground: true,
|
|
194
|
-
},
|
|
195
|
-
scene: {
|
|
196
|
-
flags: {
|
|
197
|
-
shadowsEnabled: true,
|
|
198
|
-
particlesEnabled: false,
|
|
199
|
-
collisionsEnabled: false,
|
|
200
|
-
lightsEnabled: true,
|
|
201
|
-
texturesEnabled: true,
|
|
202
|
-
lensFlaresEnabled: false,
|
|
203
|
-
proceduralTexturesEnabled: false,
|
|
204
|
-
renderTargetsEnabled: true,
|
|
205
|
-
spritesEnabled: false,
|
|
206
|
-
skeletonsEnabled: true,
|
|
207
|
-
audioEnabled: false,
|
|
208
|
-
},
|
|
209
|
-
defaultMaterial: {
|
|
210
|
-
materialType: "pbr",
|
|
211
|
-
reflectivityColor: {
|
|
212
|
-
r: 0.1,
|
|
213
|
-
g: 0.1,
|
|
214
|
-
b: 0.1,
|
|
215
|
-
},
|
|
216
|
-
microSurface: 0.6,
|
|
217
|
-
},
|
|
218
|
-
clearColor: {
|
|
219
|
-
r: 0.9,
|
|
220
|
-
g: 0.9,
|
|
221
|
-
b: 0.9,
|
|
222
|
-
a: 1.0,
|
|
223
|
-
},
|
|
224
|
-
imageProcessingConfiguration: {
|
|
225
|
-
vignetteCentreX: 0,
|
|
226
|
-
vignetteCentreY: 0,
|
|
227
|
-
vignetteColor: {
|
|
228
|
-
r: 0.086,
|
|
229
|
-
g: 0.184,
|
|
230
|
-
b: 0.259,
|
|
231
|
-
a: 1,
|
|
232
|
-
},
|
|
233
|
-
vignetteWeight: 0.855,
|
|
234
|
-
vignetteStretch: 0.5,
|
|
235
|
-
vignetteBlendMode: 0,
|
|
236
|
-
vignetteCameraFov: 0.7853981633974483,
|
|
237
|
-
isEnabled: true,
|
|
238
|
-
colorCurves: {
|
|
239
|
-
shadowsHue: 0,
|
|
240
|
-
shadowsDensity: 0,
|
|
241
|
-
shadowsSaturation: 0,
|
|
242
|
-
shadowsExposure: 0,
|
|
243
|
-
midtonesHue: 0,
|
|
244
|
-
midtonesDensity: 0,
|
|
245
|
-
midtonesExposure: 0,
|
|
246
|
-
midtonesSaturation: 0,
|
|
247
|
-
highlightsHue: 0,
|
|
248
|
-
highlightsDensity: 0,
|
|
249
|
-
highlightsExposure: 0,
|
|
250
|
-
highlightsSaturation: 0,
|
|
251
|
-
},
|
|
252
|
-
},
|
|
253
|
-
assetsRootURL: "https://viewer.babylonjs.com/assets/environment/",
|
|
254
|
-
},
|
|
255
|
-
loaderPlugins: {
|
|
256
|
-
extendedMaterial: true,
|
|
257
|
-
applyMaterialConfig: true,
|
|
258
|
-
msftLod: true,
|
|
259
|
-
telemetry: true,
|
|
260
|
-
},
|
|
261
|
-
model: {
|
|
262
|
-
rotationOffsetAxis: {
|
|
263
|
-
x: 0,
|
|
264
|
-
y: -1,
|
|
265
|
-
z: 0,
|
|
266
|
-
},
|
|
267
|
-
rotationOffsetAngle: Tools.ToRadians(210),
|
|
268
|
-
material: {
|
|
269
|
-
directEnabled: true,
|
|
270
|
-
directIntensity: 0.884,
|
|
271
|
-
emissiveIntensity: 1.04,
|
|
272
|
-
environmentIntensity: 0.6,
|
|
273
|
-
},
|
|
274
|
-
entryAnimation: {
|
|
275
|
-
scaling: {
|
|
276
|
-
x: 0,
|
|
277
|
-
y: 0,
|
|
278
|
-
z: 0,
|
|
279
|
-
},
|
|
280
|
-
time: 0.5,
|
|
281
|
-
easingFunction: 4,
|
|
282
|
-
easingMode: 1,
|
|
283
|
-
},
|
|
284
|
-
exitAnimation: {
|
|
285
|
-
scaling: {
|
|
286
|
-
x: 0,
|
|
287
|
-
y: 0,
|
|
288
|
-
z: 0,
|
|
289
|
-
},
|
|
290
|
-
time: 0.5,
|
|
291
|
-
easingFunction: 4,
|
|
292
|
-
easingMode: 1,
|
|
293
|
-
},
|
|
294
|
-
normalize: true,
|
|
295
|
-
castShadow: true,
|
|
296
|
-
receiveShadows: true,
|
|
297
|
-
},
|
|
298
|
-
environmentMap: {
|
|
299
|
-
texture: "EnvMap_3.0-256.env",
|
|
300
|
-
rotationY: 3,
|
|
301
|
-
tintLevel: 0.4,
|
|
302
|
-
mainColor: {
|
|
303
|
-
r: 0.8823529411764706,
|
|
304
|
-
g: 0.8823529411764706,
|
|
305
|
-
b: 0.8823529411764706,
|
|
306
|
-
},
|
|
307
|
-
},
|
|
308
|
-
lab: {
|
|
309
|
-
defaultRenderingPipelines: {
|
|
310
|
-
bloomEnabled: true,
|
|
311
|
-
bloomThreshold: 1.0,
|
|
312
|
-
fxaaEnabled: true,
|
|
313
|
-
bloomWeight: 0.05,
|
|
314
|
-
},
|
|
315
|
-
},
|
|
316
|
-
};
|
|
1
|
+
import { Tools } from "@babylonjs/core/Misc/tools.js";
|
|
2
|
+
/**
|
|
3
|
+
* The viewer's "extended" configuration.
|
|
4
|
+
* This configuration defines specific objects and parameters that we think make any model look good.
|
|
5
|
+
*/
|
|
6
|
+
export var extendedConfiguration = {
|
|
7
|
+
version: "3.2.0",
|
|
8
|
+
extends: "default",
|
|
9
|
+
camera: {
|
|
10
|
+
exposure: 3.034578,
|
|
11
|
+
fov: 0.7853981633974483,
|
|
12
|
+
contrast: 1.6,
|
|
13
|
+
toneMappingEnabled: true,
|
|
14
|
+
upperBetaLimit: 1.3962634015954636 + Math.PI / 2,
|
|
15
|
+
lowerBetaLimit: -1.4835298641951802 + Math.PI / 2,
|
|
16
|
+
behaviors: {
|
|
17
|
+
framing: {
|
|
18
|
+
type: 2,
|
|
19
|
+
mode: 0,
|
|
20
|
+
positionScale: 0.5,
|
|
21
|
+
defaultElevation: 0.2617993877991494,
|
|
22
|
+
elevationReturnWaitTime: 3000,
|
|
23
|
+
elevationReturnTime: 2000,
|
|
24
|
+
framingTime: 500,
|
|
25
|
+
zoomStopsAnimation: false,
|
|
26
|
+
radiusScale: 0.866,
|
|
27
|
+
},
|
|
28
|
+
autoRotate: {
|
|
29
|
+
type: 0,
|
|
30
|
+
idleRotationWaitTime: 4000,
|
|
31
|
+
idleRotationSpeed: 0.17453292519943295,
|
|
32
|
+
idleRotationSpinupTime: 2500,
|
|
33
|
+
zoomStopsAnimation: false,
|
|
34
|
+
},
|
|
35
|
+
bouncing: {
|
|
36
|
+
type: 1,
|
|
37
|
+
lowerRadiusTransitionRange: 0.05,
|
|
38
|
+
upperRadiusTransitionRange: -0.2,
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
upperRadiusLimit: 5,
|
|
42
|
+
lowerRadiusLimit: 0.5,
|
|
43
|
+
frameOnModelLoad: true,
|
|
44
|
+
framingElevation: 0.2617993877991494,
|
|
45
|
+
framingRotation: 1.5707963267948966,
|
|
46
|
+
radius: 2,
|
|
47
|
+
alpha: 1.5708,
|
|
48
|
+
beta: Math.PI * 0.5 - 0.2618,
|
|
49
|
+
wheelPrecision: 300,
|
|
50
|
+
minZ: 0.1,
|
|
51
|
+
maxZ: 50,
|
|
52
|
+
fovMode: 0,
|
|
53
|
+
pinchPrecision: 1500,
|
|
54
|
+
panningSensibility: 3000,
|
|
55
|
+
},
|
|
56
|
+
lights: {
|
|
57
|
+
light0: {
|
|
58
|
+
type: 0,
|
|
59
|
+
frustumEdgeFalloff: 0,
|
|
60
|
+
intensity: 7,
|
|
61
|
+
intensityMode: 0,
|
|
62
|
+
radius: 0.6,
|
|
63
|
+
range: 4.4,
|
|
64
|
+
spotAngle: 60,
|
|
65
|
+
diffuse: {
|
|
66
|
+
r: 1,
|
|
67
|
+
g: 1,
|
|
68
|
+
b: 1,
|
|
69
|
+
},
|
|
70
|
+
position: {
|
|
71
|
+
x: -2,
|
|
72
|
+
y: 2.5,
|
|
73
|
+
z: 2,
|
|
74
|
+
},
|
|
75
|
+
target: {
|
|
76
|
+
x: 0,
|
|
77
|
+
y: 0,
|
|
78
|
+
z: 0,
|
|
79
|
+
},
|
|
80
|
+
enabled: true,
|
|
81
|
+
shadowEnabled: true,
|
|
82
|
+
shadowBufferSize: 512,
|
|
83
|
+
shadowMinZ: 1,
|
|
84
|
+
shadowMaxZ: 10,
|
|
85
|
+
shadowFieldOfView: 60,
|
|
86
|
+
shadowFrustumSize: 2,
|
|
87
|
+
shadowConfig: {
|
|
88
|
+
useBlurCloseExponentialShadowMap: true,
|
|
89
|
+
useKernelBlur: true,
|
|
90
|
+
blurScale: 1.0,
|
|
91
|
+
bias: 0.001,
|
|
92
|
+
depthScale: 50 * (10 - 1),
|
|
93
|
+
frustumEdgeFalloff: 0,
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
light1: {
|
|
97
|
+
type: 0,
|
|
98
|
+
frustumEdgeFalloff: 0,
|
|
99
|
+
intensity: 7,
|
|
100
|
+
intensityMode: 0,
|
|
101
|
+
radius: 0.4,
|
|
102
|
+
range: 5.8,
|
|
103
|
+
spotAngle: 57,
|
|
104
|
+
diffuse: {
|
|
105
|
+
r: 1,
|
|
106
|
+
g: 1,
|
|
107
|
+
b: 1,
|
|
108
|
+
},
|
|
109
|
+
position: {
|
|
110
|
+
x: 4,
|
|
111
|
+
y: 3,
|
|
112
|
+
z: -0.5,
|
|
113
|
+
},
|
|
114
|
+
target: {
|
|
115
|
+
x: 0,
|
|
116
|
+
y: 0,
|
|
117
|
+
z: 0,
|
|
118
|
+
},
|
|
119
|
+
enabled: true,
|
|
120
|
+
shadowEnabled: false,
|
|
121
|
+
shadowBufferSize: 512,
|
|
122
|
+
shadowMinZ: 0.2,
|
|
123
|
+
shadowMaxZ: 10,
|
|
124
|
+
shadowFieldOfView: 28,
|
|
125
|
+
shadowFrustumSize: 2,
|
|
126
|
+
},
|
|
127
|
+
light2: {
|
|
128
|
+
type: 0,
|
|
129
|
+
frustumEdgeFalloff: 0,
|
|
130
|
+
intensity: 1,
|
|
131
|
+
intensityMode: 0,
|
|
132
|
+
radius: 0.5,
|
|
133
|
+
range: 6,
|
|
134
|
+
spotAngle: 42.85,
|
|
135
|
+
diffuse: {
|
|
136
|
+
r: 0.8,
|
|
137
|
+
g: 0.8,
|
|
138
|
+
b: 0.8,
|
|
139
|
+
},
|
|
140
|
+
position: {
|
|
141
|
+
x: -1,
|
|
142
|
+
y: 3,
|
|
143
|
+
z: -3,
|
|
144
|
+
},
|
|
145
|
+
target: {
|
|
146
|
+
x: 0,
|
|
147
|
+
y: 0,
|
|
148
|
+
z: 0,
|
|
149
|
+
},
|
|
150
|
+
enabled: true,
|
|
151
|
+
shadowEnabled: false,
|
|
152
|
+
shadowBufferSize: 512,
|
|
153
|
+
shadowMinZ: 0.2,
|
|
154
|
+
shadowMaxZ: 10,
|
|
155
|
+
shadowFieldOfView: 45,
|
|
156
|
+
shadowFrustumSize: 2,
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
ground: {
|
|
160
|
+
shadowLevel: 0.9,
|
|
161
|
+
texture: "Ground_2.0-1024.png",
|
|
162
|
+
material: {
|
|
163
|
+
primaryColorHighlightLevel: 0.035,
|
|
164
|
+
primaryColorShadowLevel: 0,
|
|
165
|
+
enableNoise: true,
|
|
166
|
+
useRGBColor: false,
|
|
167
|
+
maxSimultaneousLights: 1,
|
|
168
|
+
diffuseTexture: {
|
|
169
|
+
gammaSpace: true,
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
opacity: 1,
|
|
173
|
+
mirror: false,
|
|
174
|
+
receiveShadows: true,
|
|
175
|
+
size: 5,
|
|
176
|
+
},
|
|
177
|
+
skybox: {
|
|
178
|
+
scale: 11,
|
|
179
|
+
cubeTexture: {
|
|
180
|
+
url: "Skybox_2.0-256.dds",
|
|
181
|
+
},
|
|
182
|
+
material: {
|
|
183
|
+
primaryColorHighlightLevel: 0.03,
|
|
184
|
+
primaryColorShadowLevel: 0.03,
|
|
185
|
+
enableNoise: true,
|
|
186
|
+
useRGBColor: false,
|
|
187
|
+
reflectionTexture: {
|
|
188
|
+
gammaSpace: true,
|
|
189
|
+
},
|
|
190
|
+
},
|
|
191
|
+
},
|
|
192
|
+
engine: {
|
|
193
|
+
renderInBackground: true,
|
|
194
|
+
},
|
|
195
|
+
scene: {
|
|
196
|
+
flags: {
|
|
197
|
+
shadowsEnabled: true,
|
|
198
|
+
particlesEnabled: false,
|
|
199
|
+
collisionsEnabled: false,
|
|
200
|
+
lightsEnabled: true,
|
|
201
|
+
texturesEnabled: true,
|
|
202
|
+
lensFlaresEnabled: false,
|
|
203
|
+
proceduralTexturesEnabled: false,
|
|
204
|
+
renderTargetsEnabled: true,
|
|
205
|
+
spritesEnabled: false,
|
|
206
|
+
skeletonsEnabled: true,
|
|
207
|
+
audioEnabled: false,
|
|
208
|
+
},
|
|
209
|
+
defaultMaterial: {
|
|
210
|
+
materialType: "pbr",
|
|
211
|
+
reflectivityColor: {
|
|
212
|
+
r: 0.1,
|
|
213
|
+
g: 0.1,
|
|
214
|
+
b: 0.1,
|
|
215
|
+
},
|
|
216
|
+
microSurface: 0.6,
|
|
217
|
+
},
|
|
218
|
+
clearColor: {
|
|
219
|
+
r: 0.9,
|
|
220
|
+
g: 0.9,
|
|
221
|
+
b: 0.9,
|
|
222
|
+
a: 1.0,
|
|
223
|
+
},
|
|
224
|
+
imageProcessingConfiguration: {
|
|
225
|
+
vignetteCentreX: 0,
|
|
226
|
+
vignetteCentreY: 0,
|
|
227
|
+
vignetteColor: {
|
|
228
|
+
r: 0.086,
|
|
229
|
+
g: 0.184,
|
|
230
|
+
b: 0.259,
|
|
231
|
+
a: 1,
|
|
232
|
+
},
|
|
233
|
+
vignetteWeight: 0.855,
|
|
234
|
+
vignetteStretch: 0.5,
|
|
235
|
+
vignetteBlendMode: 0,
|
|
236
|
+
vignetteCameraFov: 0.7853981633974483,
|
|
237
|
+
isEnabled: true,
|
|
238
|
+
colorCurves: {
|
|
239
|
+
shadowsHue: 0,
|
|
240
|
+
shadowsDensity: 0,
|
|
241
|
+
shadowsSaturation: 0,
|
|
242
|
+
shadowsExposure: 0,
|
|
243
|
+
midtonesHue: 0,
|
|
244
|
+
midtonesDensity: 0,
|
|
245
|
+
midtonesExposure: 0,
|
|
246
|
+
midtonesSaturation: 0,
|
|
247
|
+
highlightsHue: 0,
|
|
248
|
+
highlightsDensity: 0,
|
|
249
|
+
highlightsExposure: 0,
|
|
250
|
+
highlightsSaturation: 0,
|
|
251
|
+
},
|
|
252
|
+
},
|
|
253
|
+
assetsRootURL: "https://viewer.babylonjs.com/assets/environment/",
|
|
254
|
+
},
|
|
255
|
+
loaderPlugins: {
|
|
256
|
+
extendedMaterial: true,
|
|
257
|
+
applyMaterialConfig: true,
|
|
258
|
+
msftLod: true,
|
|
259
|
+
telemetry: true,
|
|
260
|
+
},
|
|
261
|
+
model: {
|
|
262
|
+
rotationOffsetAxis: {
|
|
263
|
+
x: 0,
|
|
264
|
+
y: -1,
|
|
265
|
+
z: 0,
|
|
266
|
+
},
|
|
267
|
+
rotationOffsetAngle: Tools.ToRadians(210),
|
|
268
|
+
material: {
|
|
269
|
+
directEnabled: true,
|
|
270
|
+
directIntensity: 0.884,
|
|
271
|
+
emissiveIntensity: 1.04,
|
|
272
|
+
environmentIntensity: 0.6,
|
|
273
|
+
},
|
|
274
|
+
entryAnimation: {
|
|
275
|
+
scaling: {
|
|
276
|
+
x: 0,
|
|
277
|
+
y: 0,
|
|
278
|
+
z: 0,
|
|
279
|
+
},
|
|
280
|
+
time: 0.5,
|
|
281
|
+
easingFunction: 4,
|
|
282
|
+
easingMode: 1,
|
|
283
|
+
},
|
|
284
|
+
exitAnimation: {
|
|
285
|
+
scaling: {
|
|
286
|
+
x: 0,
|
|
287
|
+
y: 0,
|
|
288
|
+
z: 0,
|
|
289
|
+
},
|
|
290
|
+
time: 0.5,
|
|
291
|
+
easingFunction: 4,
|
|
292
|
+
easingMode: 1,
|
|
293
|
+
},
|
|
294
|
+
normalize: true,
|
|
295
|
+
castShadow: true,
|
|
296
|
+
receiveShadows: true,
|
|
297
|
+
},
|
|
298
|
+
environmentMap: {
|
|
299
|
+
texture: "EnvMap_3.0-256.env",
|
|
300
|
+
rotationY: 3,
|
|
301
|
+
tintLevel: 0.4,
|
|
302
|
+
mainColor: {
|
|
303
|
+
r: 0.8823529411764706,
|
|
304
|
+
g: 0.8823529411764706,
|
|
305
|
+
b: 0.8823529411764706,
|
|
306
|
+
},
|
|
307
|
+
},
|
|
308
|
+
lab: {
|
|
309
|
+
defaultRenderingPipelines: {
|
|
310
|
+
bloomEnabled: true,
|
|
311
|
+
bloomThreshold: 1.0,
|
|
312
|
+
fxaaEnabled: true,
|
|
313
|
+
bloomWeight: 0.05,
|
|
314
|
+
},
|
|
315
|
+
},
|
|
316
|
+
};
|
|
317
317
|
//# sourceMappingURL=extended.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { minimalConfiguration } from "./minimal";
|
|
2
|
-
import { defaultConfiguration } from "./default";
|
|
3
|
-
import type { ViewerConfiguration } from "../configuration";
|
|
4
|
-
/**
|
|
5
|
-
* Get the configuration type you need to use as the base for your viewer.
|
|
6
|
-
* The types can either be a single string, or comma separated types that will extend each other. for example:
|
|
7
|
-
*
|
|
8
|
-
* "default, environmentMap" will first load the default configuration and will extend it using the environmentMap configuration.
|
|
9
|
-
*
|
|
10
|
-
* @param types a comma-separated string of the type(s) or configuration to load.
|
|
11
|
-
*/
|
|
12
|
-
declare const getConfigurationType: (types: string) => ViewerConfiguration;
|
|
13
|
-
export { getConfigurationType, defaultConfiguration, minimalConfiguration };
|
|
1
|
+
import { minimalConfiguration } from "./minimal";
|
|
2
|
+
import { defaultConfiguration } from "./default";
|
|
3
|
+
import type { ViewerConfiguration } from "../configuration";
|
|
4
|
+
/**
|
|
5
|
+
* Get the configuration type you need to use as the base for your viewer.
|
|
6
|
+
* The types can either be a single string, or comma separated types that will extend each other. for example:
|
|
7
|
+
*
|
|
8
|
+
* "default, environmentMap" will first load the default configuration and will extend it using the environmentMap configuration.
|
|
9
|
+
*
|
|
10
|
+
* @param types a comma-separated string of the type(s) or configuration to load.
|
|
11
|
+
*/
|
|
12
|
+
declare const getConfigurationType: (types: string) => ViewerConfiguration;
|
|
13
|
+
export { getConfigurationType, defaultConfiguration, minimalConfiguration };
|