illutions 0.21.6 → 0.21.8
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/CHANGELOG.md +7 -0
- package/LICENSE +70 -11
- package/README.md +50 -47
- package/dist/main.d.ts +163 -121
- package/dist/main.min.cjs +1 -1
- package/dist/main.min.js +1 -1
- package/package.json +7 -6
package/dist/main.d.ts
CHANGED
|
@@ -23,7 +23,8 @@ import type * as THREE_TYPE from 'three';
|
|
|
23
23
|
import type * as THREE_WEBGPU_TYPE from 'three/webgpu';
|
|
24
24
|
import type * as THREE_WEBTSL_TYPE from 'three/tsl';
|
|
25
25
|
|
|
26
|
-
/**
|
|
26
|
+
/**
|
|
27
|
+
* Defines the shared anti-aliasing settings.
|
|
27
28
|
* @category Cfg
|
|
28
29
|
*/
|
|
29
30
|
export declare interface aaCfg {
|
|
@@ -39,7 +40,8 @@ export declare interface aaCfg {
|
|
|
39
40
|
mode: 'none' | 'fxaa' | 'smaa';
|
|
40
41
|
}
|
|
41
42
|
|
|
42
|
-
/**
|
|
43
|
+
/**
|
|
44
|
+
* Defines the ambient light settings controlling global scene illumination.
|
|
43
45
|
* @category Cfg
|
|
44
46
|
*/
|
|
45
47
|
export declare interface AmbientlightCfg {
|
|
@@ -90,7 +92,7 @@ export declare interface AnimFadeEvent {
|
|
|
90
92
|
* @category Core
|
|
91
93
|
*/
|
|
92
94
|
export declare class App<TClasses extends Classes = {}> {
|
|
93
|
-
readonly audio: Audio_2;
|
|
95
|
+
readonly audio: Audio_2 | null;
|
|
94
96
|
readonly cfgCtrl: CfgCtrl;
|
|
95
97
|
readonly engine: Engine;
|
|
96
98
|
readonly envCtrls: EnvCtrls;
|
|
@@ -100,7 +102,7 @@ export declare class App<TClasses extends Classes = {}> {
|
|
|
100
102
|
readonly raycast: Raycast;
|
|
101
103
|
readonly stateMachine: StateMachine;
|
|
102
104
|
private cam3D;
|
|
103
|
-
private readonly
|
|
105
|
+
private readonly inspector;
|
|
104
106
|
readonly comps: CompInsts<NonNullable<TClasses['comps']>>;
|
|
105
107
|
readonly objs3D: Obj3DInsts<NonNullable<TClasses['objs3D']>>;
|
|
106
108
|
/* Excluded from this release type: __constructor */
|
|
@@ -210,10 +212,16 @@ declare class Audio_2 {
|
|
|
210
212
|
}
|
|
211
213
|
export { Audio_2 as Audio }
|
|
212
214
|
|
|
213
|
-
/**
|
|
215
|
+
/**
|
|
216
|
+
* Defines the audio settings used for playback timing and distance-based spatial attenuation.
|
|
214
217
|
* @category Cfg
|
|
215
218
|
*/
|
|
216
219
|
export declare interface AudioCfg {
|
|
220
|
+
/**
|
|
221
|
+
* Whether audio support is initialized when the application starts.
|
|
222
|
+
* @default false
|
|
223
|
+
*/
|
|
224
|
+
enable: boolean;
|
|
217
225
|
/**
|
|
218
226
|
* Whether the GUI audio dropdown is open.
|
|
219
227
|
* @default false
|
|
@@ -294,7 +302,8 @@ export declare class Cam3D extends Obj3D {
|
|
|
294
302
|
/* Excluded from this release type: updateCanvasResize */
|
|
295
303
|
}
|
|
296
304
|
|
|
297
|
-
/**
|
|
305
|
+
/**
|
|
306
|
+
* Defines the shared camera settings used to position, orient and clip the scene view.
|
|
298
307
|
* @category Cfg
|
|
299
308
|
*/
|
|
300
309
|
export declare interface CamBaseCfg {
|
|
@@ -330,7 +339,8 @@ export declare interface CamBaseCfg {
|
|
|
330
339
|
|
|
331
340
|
export declare type CamCfg = CamPerspectiveCfg | CamOrthographicCfg;
|
|
332
341
|
|
|
333
|
-
/**
|
|
342
|
+
/**
|
|
343
|
+
* Defines the orthographic camera settings used to render the scene without perspective distortion.
|
|
334
344
|
* @category Cfg
|
|
335
345
|
*/
|
|
336
346
|
export declare interface CamOrthographicCfg extends CamBaseCfg {
|
|
@@ -365,7 +375,8 @@ export declare interface CamOrthographicCfg extends CamBaseCfg {
|
|
|
365
375
|
aspect?: never;
|
|
366
376
|
}
|
|
367
377
|
|
|
368
|
-
/**
|
|
378
|
+
/**
|
|
379
|
+
* Defines the perspective camera settings used to render the scene with depth perception.
|
|
369
380
|
* @category Cfg
|
|
370
381
|
*/
|
|
371
382
|
export declare interface CamPerspectiveCfg extends CamBaseCfg {
|
|
@@ -405,7 +416,8 @@ export declare interface CanvasPointerEvent {
|
|
|
405
416
|
event: PointerEvent;
|
|
406
417
|
}
|
|
407
418
|
|
|
408
|
-
/**
|
|
419
|
+
/**
|
|
420
|
+
* Defines the full configuration structure used to initialize the application.
|
|
409
421
|
* @category Cfg
|
|
410
422
|
*/
|
|
411
423
|
export declare interface Cfg {
|
|
@@ -417,10 +429,10 @@ export declare interface Cfg {
|
|
|
417
429
|
debug: DebugCfg;
|
|
418
430
|
/** Environment controls settings. */
|
|
419
431
|
envCtrls: EnvCtrlsCfg;
|
|
432
|
+
/** Default GUI settings. */
|
|
433
|
+
gui: GuiCfg;
|
|
420
434
|
/** Light and shadow settings. */
|
|
421
435
|
light: LightCfg;
|
|
422
|
-
/** Menu bar settings. */
|
|
423
|
-
menuBar: MenuBarCfg;
|
|
424
436
|
/** Default mesh settings. */
|
|
425
437
|
mesh: MeshCfg;
|
|
426
438
|
/** GLTF/GLB model settings. */
|
|
@@ -439,8 +451,6 @@ export declare interface Cfg {
|
|
|
439
451
|
scene: SceneCfg;
|
|
440
452
|
/** State machine settings. */
|
|
441
453
|
stateMachine: StateMachineCfg;
|
|
442
|
-
/** Runtime statistics settings. */
|
|
443
|
-
stats: StatsCfg;
|
|
444
454
|
}
|
|
445
455
|
|
|
446
456
|
/** Defines the static configuration that is applied at compile-time. For runtime updates use {@link CfgCtrl}. */
|
|
@@ -465,7 +475,7 @@ export declare class CfgCtrl {
|
|
|
465
475
|
* @param params.coneOuterAngle - {@link AudioCfg.coneOuterAngle}.
|
|
466
476
|
* @param params.coneOuterGain - {@link AudioCfg.coneOuterGain}.
|
|
467
477
|
*/
|
|
468
|
-
setAudio(params: Partial<AudioCfg
|
|
478
|
+
setAudio(params: Partial<Omit<AudioCfg, 'enable'>>): void;
|
|
469
479
|
/**
|
|
470
480
|
* Applies runtime updates to `RenderCfg`.
|
|
471
481
|
*
|
|
@@ -546,7 +556,7 @@ export declare class Comp extends HTMLElement {
|
|
|
546
556
|
* @public
|
|
547
557
|
*
|
|
548
558
|
* **Example**
|
|
549
|
-
* {@includeCode ../../examples/
|
|
559
|
+
* {@includeCode ../../examples/ilu-onready.ts}
|
|
550
560
|
*/
|
|
551
561
|
protected onReady(): void;
|
|
552
562
|
/**
|
|
@@ -570,7 +580,8 @@ export declare type CompInsts<T extends Record<string, CompClass>> = {
|
|
|
570
580
|
[K in keyof T]: InstanceType<T[K]>[];
|
|
571
581
|
};
|
|
572
582
|
|
|
573
|
-
/**
|
|
583
|
+
/**
|
|
584
|
+
* Defines the debugging settings that can be toggled during development.
|
|
574
585
|
* @category Cfg
|
|
575
586
|
*/
|
|
576
587
|
export declare interface DebugCfg {
|
|
@@ -599,7 +610,7 @@ export declare class Engine {
|
|
|
599
610
|
private readonly comps;
|
|
600
611
|
private readonly objs3D;
|
|
601
612
|
private readonly cfg;
|
|
602
|
-
private readonly
|
|
613
|
+
private readonly infoBox;
|
|
603
614
|
private actionObserver;
|
|
604
615
|
private gltf;
|
|
605
616
|
private mixer;
|
|
@@ -624,7 +635,7 @@ export declare class Engine {
|
|
|
624
635
|
private ambientLight;
|
|
625
636
|
private hemisphereLight;
|
|
626
637
|
private powerMode;
|
|
627
|
-
private
|
|
638
|
+
private postNoise;
|
|
628
639
|
private dTs;
|
|
629
640
|
private dT;
|
|
630
641
|
private dTFrameMax;
|
|
@@ -637,7 +648,6 @@ export declare class Engine {
|
|
|
637
648
|
/* Excluded from this release type: __constructor */
|
|
638
649
|
/* Excluded from this release type: init */
|
|
639
650
|
private initWebGpuRenderer;
|
|
640
|
-
private isPostEnabled;
|
|
641
651
|
/**
|
|
642
652
|
* Registers a callback that is executed on every requestAnimationFrame update.
|
|
643
653
|
* @param {(deltaTime: number) => void} cb - Callback executed once per frame with `deltaTime`.
|
|
@@ -756,7 +766,9 @@ export declare class Engine {
|
|
|
756
766
|
* @param enable - Whether SSR should be enabled.
|
|
757
767
|
*/
|
|
758
768
|
enableSsr(enable: boolean): Promise<void>;
|
|
759
|
-
private
|
|
769
|
+
private isPostCfg;
|
|
770
|
+
/* Excluded from this release type: isPostEnabled */
|
|
771
|
+
private isPostGpu;
|
|
760
772
|
private loadModel;
|
|
761
773
|
private pauseObjActions;
|
|
762
774
|
/**
|
|
@@ -997,7 +1009,8 @@ export declare class EnvCtrls {
|
|
|
997
1009
|
private update;
|
|
998
1010
|
}
|
|
999
1011
|
|
|
1000
|
-
/**
|
|
1012
|
+
/**
|
|
1013
|
+
* Defines the environment controls settings for `THREE.Scene.environment` and `THREE.Scene.background`.
|
|
1001
1014
|
* @category Cfg
|
|
1002
1015
|
*/
|
|
1003
1016
|
export declare interface EnvCtrlsCfg {
|
|
@@ -1079,7 +1092,8 @@ export declare class Events {
|
|
|
1079
1092
|
/* Excluded from this release type: windowResize */
|
|
1080
1093
|
}
|
|
1081
1094
|
|
|
1082
|
-
/**
|
|
1095
|
+
/**
|
|
1096
|
+
* Defines the fog settings controlling scene depth-based color attenuation.
|
|
1083
1097
|
* @category Cfg
|
|
1084
1098
|
*/
|
|
1085
1099
|
export declare interface FogCfg {
|
|
@@ -1186,7 +1200,8 @@ export declare class FpvCtrls {
|
|
|
1186
1200
|
use(extension: (fpvctrls: FpvCtrls) => void): void;
|
|
1187
1201
|
}
|
|
1188
1202
|
|
|
1189
|
-
/**
|
|
1203
|
+
/**
|
|
1204
|
+
* Defines the First Person View Controls settings used to move and rotate the camera inside a scene.
|
|
1190
1205
|
* @category Cfg
|
|
1191
1206
|
*/
|
|
1192
1207
|
export declare interface FpvCtrlsCfg {
|
|
@@ -1253,7 +1268,8 @@ export declare interface FpvCtrlsEvent {
|
|
|
1253
1268
|
type: 'FPVCTRLS_DISABLED' | 'FPVCTRLS_ENABLED' | 'FPVCTRLS_LOCK' | 'FPVCTRLS_UNLOCK' | 'FPVCTRLS_DISABLED';
|
|
1254
1269
|
}
|
|
1255
1270
|
|
|
1256
|
-
/**
|
|
1271
|
+
/**
|
|
1272
|
+
* Defines the FXAA anti-aliasing settings used to smooth jagged edges in the rendered image.
|
|
1257
1273
|
* @category Cfg
|
|
1258
1274
|
*/
|
|
1259
1275
|
export declare interface FxaaCfg {
|
|
@@ -1264,7 +1280,27 @@ export declare interface FxaaCfg {
|
|
|
1264
1280
|
sharpness: number;
|
|
1265
1281
|
}
|
|
1266
1282
|
|
|
1267
|
-
/**
|
|
1283
|
+
/**
|
|
1284
|
+
* Defines the GUI elements for runtime information, controls and inspection.
|
|
1285
|
+
* @category Cfg
|
|
1286
|
+
*/
|
|
1287
|
+
export declare interface GuiCfg {
|
|
1288
|
+
/** The infobox for runtime statistics and renderer information. */
|
|
1289
|
+
infoBox: InfoBoxCfg;
|
|
1290
|
+
/** The inspector for runtime properties. */
|
|
1291
|
+
inspector: {
|
|
1292
|
+
/**
|
|
1293
|
+
* Activates the inspector for runtime property control via lazy loading.
|
|
1294
|
+
* @default true
|
|
1295
|
+
*/
|
|
1296
|
+
enable: boolean;
|
|
1297
|
+
};
|
|
1298
|
+
/** The menubar at the bottom. */
|
|
1299
|
+
menuBar: MenuBarCfg;
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1302
|
+
/**
|
|
1303
|
+
* Defines the hemisphere light settings controlling ambient sky and ground illumination.
|
|
1268
1304
|
* @category Cfg
|
|
1269
1305
|
*/
|
|
1270
1306
|
export declare interface HemisphereCfg {
|
|
@@ -1290,6 +1326,73 @@ export declare interface HemisphereCfg {
|
|
|
1290
1326
|
intensity: number;
|
|
1291
1327
|
}
|
|
1292
1328
|
|
|
1329
|
+
/**
|
|
1330
|
+
* Defines the built-in engine infobox settings used to display FPS, CPU/frame timing and renderer.info values.
|
|
1331
|
+
* @category Cfg
|
|
1332
|
+
*/
|
|
1333
|
+
export declare interface InfoBoxCfg {
|
|
1334
|
+
/**
|
|
1335
|
+
* Enables or disables infobox data collection.
|
|
1336
|
+
* @default true
|
|
1337
|
+
*/
|
|
1338
|
+
enabled: boolean;
|
|
1339
|
+
/**
|
|
1340
|
+
* Shows the FPS value.
|
|
1341
|
+
* @default true
|
|
1342
|
+
*/
|
|
1343
|
+
fps: boolean;
|
|
1344
|
+
/**
|
|
1345
|
+
* Shows the measured CPU/update time in milliseconds.
|
|
1346
|
+
* @default true
|
|
1347
|
+
*/
|
|
1348
|
+
cpu: boolean;
|
|
1349
|
+
/**
|
|
1350
|
+
* Shows the frame time in milliseconds.
|
|
1351
|
+
* @default true
|
|
1352
|
+
*/
|
|
1353
|
+
frame: boolean;
|
|
1354
|
+
/**
|
|
1355
|
+
* Shows renderer.info.render.calls.
|
|
1356
|
+
* @default true
|
|
1357
|
+
*/
|
|
1358
|
+
calls: boolean;
|
|
1359
|
+
/**
|
|
1360
|
+
* Shows renderer.info.render.triangles.
|
|
1361
|
+
* @default true
|
|
1362
|
+
*/
|
|
1363
|
+
triangles: boolean;
|
|
1364
|
+
/**
|
|
1365
|
+
* Shows renderer.info.render.lines.
|
|
1366
|
+
* @default true
|
|
1367
|
+
*/
|
|
1368
|
+
lines: boolean;
|
|
1369
|
+
/**
|
|
1370
|
+
* Shows renderer.info.render.points.
|
|
1371
|
+
* @default true
|
|
1372
|
+
*/
|
|
1373
|
+
points: boolean;
|
|
1374
|
+
/**
|
|
1375
|
+
* Shows renderer.info.memory.geometries.
|
|
1376
|
+
* @default true
|
|
1377
|
+
*/
|
|
1378
|
+
geometries: boolean;
|
|
1379
|
+
/**
|
|
1380
|
+
* Shows renderer.info.memory.textures.
|
|
1381
|
+
* @default true
|
|
1382
|
+
*/
|
|
1383
|
+
textures: boolean;
|
|
1384
|
+
/**
|
|
1385
|
+
* Shows the number of compiled WebGL programs from renderer.info.programs.
|
|
1386
|
+
* @default true
|
|
1387
|
+
*/
|
|
1388
|
+
programs: boolean;
|
|
1389
|
+
/**
|
|
1390
|
+
* Refresh rate of the displayed values.
|
|
1391
|
+
* @default 10
|
|
1392
|
+
*/
|
|
1393
|
+
logsPerSecond: number;
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1293
1396
|
/**
|
|
1294
1397
|
* The `Light3D` class represents a managed light source.
|
|
1295
1398
|
* @category 3D Objects
|
|
@@ -1315,7 +1418,8 @@ export declare class Light3D extends Obj3D {
|
|
|
1315
1418
|
/* Excluded from this release type: traverse */
|
|
1316
1419
|
}
|
|
1317
1420
|
|
|
1318
|
-
/**
|
|
1421
|
+
/**
|
|
1422
|
+
* Defines the light shadow settings used to configure shadow map resolution and shadow camera limits.
|
|
1319
1423
|
* @category Cfg
|
|
1320
1424
|
*/
|
|
1321
1425
|
export declare interface LightCfg {
|
|
@@ -1351,7 +1455,8 @@ export declare interface LightCfg {
|
|
|
1351
1455
|
far: number;
|
|
1352
1456
|
}
|
|
1353
1457
|
|
|
1354
|
-
/**
|
|
1458
|
+
/**
|
|
1459
|
+
* Defines the menu bar settings used to display licensed UI controls and branding.
|
|
1355
1460
|
* @category Cfg
|
|
1356
1461
|
*/
|
|
1357
1462
|
export declare interface MenuBarCfg {
|
|
@@ -1400,7 +1505,8 @@ export declare class Mesh3D extends Obj3D {
|
|
|
1400
1505
|
/* Excluded from this release type: traverse */
|
|
1401
1506
|
}
|
|
1402
1507
|
|
|
1403
|
-
/**
|
|
1508
|
+
/**
|
|
1509
|
+
* Defines the mesh-specific rendering settings used to control shadows and frustum culling.
|
|
1404
1510
|
* @category Cfg
|
|
1405
1511
|
*/
|
|
1406
1512
|
export declare interface MeshCfg {
|
|
@@ -1421,7 +1527,8 @@ export declare interface MeshCfg {
|
|
|
1421
1527
|
frustumCulled: boolean;
|
|
1422
1528
|
}
|
|
1423
1529
|
|
|
1424
|
-
/**
|
|
1530
|
+
/**
|
|
1531
|
+
* Defines the GLTF/GLB model loading settings used to fetch models and configure optional Draco decoding.
|
|
1425
1532
|
* @category Cfg
|
|
1426
1533
|
*/
|
|
1427
1534
|
export declare interface ModelCfg {
|
|
@@ -1762,7 +1869,8 @@ export declare class OrbitCtrls {
|
|
|
1762
1869
|
private updatePointersStart;
|
|
1763
1870
|
}
|
|
1764
1871
|
|
|
1765
|
-
/**
|
|
1872
|
+
/**
|
|
1873
|
+
* Defines the Orbit Controls settings used to rotate, pan, zoom and constrain the camera around a target.
|
|
1766
1874
|
* @category Cfg
|
|
1767
1875
|
*/
|
|
1768
1876
|
export declare interface OrbitCtrlsCfg {
|
|
@@ -1863,15 +1971,11 @@ export declare interface OrbitCtrlsEvent {
|
|
|
1863
1971
|
*/
|
|
1864
1972
|
export declare type PauseObjectActions = 'all' | 'finished' | 'last' | 'none';
|
|
1865
1973
|
|
|
1866
|
-
/**
|
|
1974
|
+
/**
|
|
1975
|
+
* Defines the post-processing settings used by the rendering pipeline.
|
|
1867
1976
|
* @category Cfg
|
|
1868
1977
|
*/
|
|
1869
1978
|
export declare interface PostCfg {
|
|
1870
|
-
/**
|
|
1871
|
-
* Enables GPU-based auto activation for post-processing.
|
|
1872
|
-
* @default true
|
|
1873
|
-
*/
|
|
1874
|
-
auto: boolean;
|
|
1875
1979
|
/**
|
|
1876
1980
|
* Whether the GUI post-processing dropdown is open.
|
|
1877
1981
|
* @default false
|
|
@@ -1982,7 +2086,8 @@ export declare class Raycast {
|
|
|
1982
2086
|
private updatePointer;
|
|
1983
2087
|
}
|
|
1984
2088
|
|
|
1985
|
-
/**
|
|
2089
|
+
/**
|
|
2090
|
+
* Defines the raycasting settings used to detect selectable objects around the pointer.
|
|
1986
2091
|
* @category Cfg
|
|
1987
2092
|
*/
|
|
1988
2093
|
export declare interface RaycastCfg {
|
|
@@ -2003,7 +2108,8 @@ export declare interface RaycastCfg {
|
|
|
2003
2108
|
countClosestObjs: number;
|
|
2004
2109
|
}
|
|
2005
2110
|
|
|
2006
|
-
/**
|
|
2111
|
+
/**
|
|
2112
|
+
* Defines the renderer settings used to control frame timing, resolution, shadows, tone mapping and output color space.
|
|
2007
2113
|
* @category Cfg
|
|
2008
2114
|
*/
|
|
2009
2115
|
export declare interface RenderCfg {
|
|
@@ -2042,11 +2148,6 @@ export declare interface RenderCfg {
|
|
|
2042
2148
|
* @default 10
|
|
2043
2149
|
*/
|
|
2044
2150
|
deltaTimesMax: number;
|
|
2045
|
-
/**
|
|
2046
|
-
* Activates the GUI module via lazy loading.
|
|
2047
|
-
* @default false
|
|
2048
|
-
*/
|
|
2049
|
-
gui: boolean;
|
|
2050
2151
|
/**
|
|
2051
2152
|
* Output color space.
|
|
2052
2153
|
* @default THREE.SRGBColorSpace
|
|
@@ -2083,7 +2184,6 @@ export declare interface RenderCfg {
|
|
|
2083
2184
|
webgl: {
|
|
2084
2185
|
/**
|
|
2085
2186
|
* Parameters passed to `THREE.WebGLRenderer`.
|
|
2086
|
-
* @default antialias: true, alpha: false, powerPreference: 'low-power'
|
|
2087
2187
|
*/
|
|
2088
2188
|
parameters: THREE_TYPE.WebGLRendererParameters;
|
|
2089
2189
|
};
|
|
@@ -2093,7 +2193,6 @@ export declare interface RenderCfg {
|
|
|
2093
2193
|
webgpu: {
|
|
2094
2194
|
/**
|
|
2095
2195
|
* Parameters passed to `THREE.WebGPURenderer`.
|
|
2096
|
-
* @default antialias: true, alpha: false
|
|
2097
2196
|
*/
|
|
2098
2197
|
parameters: WebGpuRendererParameters;
|
|
2099
2198
|
};
|
|
@@ -2102,13 +2201,14 @@ export declare interface RenderCfg {
|
|
|
2102
2201
|
/** Defines the available renderer backends. */
|
|
2103
2202
|
export declare type Renderer = 'webgl' | 'webgpu' | 'auto';
|
|
2104
2203
|
|
|
2105
|
-
/**
|
|
2204
|
+
/**
|
|
2205
|
+
* Defines the scene settings used to configure background, environment, model, fog and lights.
|
|
2106
2206
|
* @category Cfg
|
|
2107
2207
|
*/
|
|
2108
2208
|
export declare interface SceneCfg {
|
|
2109
2209
|
/**
|
|
2110
2210
|
* Custom element tag in which the canvas is rendered.
|
|
2111
|
-
* @default '
|
|
2211
|
+
* @default 'ilu-canvas'
|
|
2112
2212
|
*/
|
|
2113
2213
|
canvas: string;
|
|
2114
2214
|
/**
|
|
@@ -2136,7 +2236,8 @@ export declare interface SceneRenderedEvent {
|
|
|
2136
2236
|
type: 'SCENE_RENDERED';
|
|
2137
2237
|
}
|
|
2138
2238
|
|
|
2139
|
-
/**
|
|
2239
|
+
/**
|
|
2240
|
+
* Defines the SMAA anti-aliasing pass settings used to smooth jagged edges in the rendered image.
|
|
2140
2241
|
* @category Cfg
|
|
2141
2242
|
*/
|
|
2142
2243
|
export declare interface SmaaCfg {
|
|
@@ -2152,7 +2253,8 @@ export declare interface SmaaCfg {
|
|
|
2152
2253
|
guiOpened: boolean;
|
|
2153
2254
|
}
|
|
2154
2255
|
|
|
2155
|
-
/**
|
|
2256
|
+
/**
|
|
2257
|
+
* Defines the screen-space ambient occlusion settings used to enhance depth and shading.
|
|
2156
2258
|
* @category Cfg
|
|
2157
2259
|
*/
|
|
2158
2260
|
export declare interface SsaoCfg {
|
|
@@ -2168,7 +2270,8 @@ export declare interface SsaoCfg {
|
|
|
2168
2270
|
guiOpened: boolean;
|
|
2169
2271
|
}
|
|
2170
2272
|
|
|
2171
|
-
/**
|
|
2273
|
+
/**
|
|
2274
|
+
* Defines the WebGL screen-space ambient occlusion settings.
|
|
2172
2275
|
* @category Cfg
|
|
2173
2276
|
*/
|
|
2174
2277
|
export declare interface SsaoWebGlCfg {
|
|
@@ -2189,7 +2292,8 @@ export declare interface SsaoWebGlCfg {
|
|
|
2189
2292
|
maxDistance: number;
|
|
2190
2293
|
}
|
|
2191
2294
|
|
|
2192
|
-
/**
|
|
2295
|
+
/**
|
|
2296
|
+
* Defines the WebGPU screen-space ambient occlusion settings.
|
|
2193
2297
|
* @category Cfg
|
|
2194
2298
|
*/
|
|
2195
2299
|
export declare interface SsaoWebGpuCfg {
|
|
@@ -2230,7 +2334,8 @@ export declare interface SsaoWebGpuCfg {
|
|
|
2230
2334
|
resolutionScale: number;
|
|
2231
2335
|
}
|
|
2232
2336
|
|
|
2233
|
-
/**
|
|
2337
|
+
/**
|
|
2338
|
+
* Defines the shared screen-space reflection settings.
|
|
2234
2339
|
* @category Cfg
|
|
2235
2340
|
*/
|
|
2236
2341
|
export declare interface SsrCfg {
|
|
@@ -2246,7 +2351,8 @@ export declare interface SsrCfg {
|
|
|
2246
2351
|
guiOpened: boolean;
|
|
2247
2352
|
}
|
|
2248
2353
|
|
|
2249
|
-
/**
|
|
2354
|
+
/**
|
|
2355
|
+
* Defines the WebGL screen-space reflection settings.
|
|
2250
2356
|
* @category Cfg
|
|
2251
2357
|
*/
|
|
2252
2358
|
export declare interface SsrWebGlCfg {
|
|
@@ -2317,7 +2423,8 @@ export declare interface SsrWebGlCfg {
|
|
|
2317
2423
|
maxRoughness: number;
|
|
2318
2424
|
}
|
|
2319
2425
|
|
|
2320
|
-
/**
|
|
2426
|
+
/**
|
|
2427
|
+
* Defines the WebGPU screen-space reflection settings.
|
|
2321
2428
|
* @category Cfg
|
|
2322
2429
|
*/
|
|
2323
2430
|
export declare interface SsrWebGpuCfg {
|
|
@@ -2388,7 +2495,8 @@ export declare class StateMachine {
|
|
|
2388
2495
|
start(stateMachine: AnyStateMachine): void;
|
|
2389
2496
|
}
|
|
2390
2497
|
|
|
2391
|
-
/**
|
|
2498
|
+
/**
|
|
2499
|
+
* Defines the application state machine settings used to control inspector-related state.
|
|
2392
2500
|
* @category Cfg
|
|
2393
2501
|
*/
|
|
2394
2502
|
export declare interface StateMachineCfg {
|
|
@@ -2399,72 +2507,6 @@ export declare interface StateMachineCfg {
|
|
|
2399
2507
|
inspector: boolean;
|
|
2400
2508
|
}
|
|
2401
2509
|
|
|
2402
|
-
/** Defines the built-in engine stats panel settings used to display FPS, CPU/frame timing and renderer.info values.
|
|
2403
|
-
* @category Cfg
|
|
2404
|
-
*/
|
|
2405
|
-
export declare interface StatsCfg {
|
|
2406
|
-
/**
|
|
2407
|
-
* Enables or disables stats data collection.
|
|
2408
|
-
* @default true
|
|
2409
|
-
*/
|
|
2410
|
-
enabled: boolean;
|
|
2411
|
-
/**
|
|
2412
|
-
* Shows the FPS value.
|
|
2413
|
-
* @default true
|
|
2414
|
-
*/
|
|
2415
|
-
fps: boolean;
|
|
2416
|
-
/**
|
|
2417
|
-
* Shows the measured CPU/update time in milliseconds.
|
|
2418
|
-
* @default true
|
|
2419
|
-
*/
|
|
2420
|
-
cpu: boolean;
|
|
2421
|
-
/**
|
|
2422
|
-
* Shows the frame time in milliseconds.
|
|
2423
|
-
* @default true
|
|
2424
|
-
*/
|
|
2425
|
-
frame: boolean;
|
|
2426
|
-
/**
|
|
2427
|
-
* Shows renderer.info.render.calls.
|
|
2428
|
-
* @default true
|
|
2429
|
-
*/
|
|
2430
|
-
calls: boolean;
|
|
2431
|
-
/**
|
|
2432
|
-
* Shows renderer.info.render.triangles.
|
|
2433
|
-
* @default true
|
|
2434
|
-
*/
|
|
2435
|
-
triangles: boolean;
|
|
2436
|
-
/**
|
|
2437
|
-
* Shows renderer.info.render.lines.
|
|
2438
|
-
* @default true
|
|
2439
|
-
*/
|
|
2440
|
-
lines: boolean;
|
|
2441
|
-
/**
|
|
2442
|
-
* Shows renderer.info.render.points.
|
|
2443
|
-
* @default true
|
|
2444
|
-
*/
|
|
2445
|
-
points: boolean;
|
|
2446
|
-
/**
|
|
2447
|
-
* Shows renderer.info.memory.geometries.
|
|
2448
|
-
* @default true
|
|
2449
|
-
*/
|
|
2450
|
-
geometries: boolean;
|
|
2451
|
-
/**
|
|
2452
|
-
* Shows renderer.info.memory.textures.
|
|
2453
|
-
* @default true
|
|
2454
|
-
*/
|
|
2455
|
-
textures: boolean;
|
|
2456
|
-
/**
|
|
2457
|
-
* Shows the number of compiled WebGL programs from renderer.info.programs.
|
|
2458
|
-
* @default true
|
|
2459
|
-
*/
|
|
2460
|
-
programs: boolean;
|
|
2461
|
-
/**
|
|
2462
|
-
* Refresh rate of the displayed values.
|
|
2463
|
-
* @default 10
|
|
2464
|
-
*/
|
|
2465
|
-
logsPerSecond: number;
|
|
2466
|
-
}
|
|
2467
|
-
|
|
2468
2510
|
/** Function returned by an event subscription. Calling it removes the associated listener. */
|
|
2469
2511
|
export declare type Unsubscribe = () => void;
|
|
2470
2512
|
|