illutions 0.29.0 → 0.29.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/CHANGELOG.md +6 -0
- package/README.md +3 -0
- package/dist/main.d.ts +25 -16
- package/dist/main.min.cjs +1 -1
- package/dist/main.min.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -19,6 +19,9 @@ Coordinate GLTF animation clips, GSAP transitions, camera paths and custom dolly
|
|
|
19
19
|
**Progressive model and HDRI loading**
|
|
20
20
|
Load ordered model levels and environment maps progressively for faster initial presentation and seamless quality upgrades.
|
|
21
21
|
|
|
22
|
+
**Flexible baked texture workflows**
|
|
23
|
+
Assign embedded GLTF textures by name to any object and material as light maps, fully baked combined color maps or alpha maps.
|
|
24
|
+
|
|
22
25
|
**XState-powered application logic**
|
|
23
26
|
Model complex application flows as predictable and inspectable state machines with integrated XState 5 usage.
|
|
24
27
|
|
package/dist/main.d.ts
CHANGED
|
@@ -1475,6 +1475,14 @@ export declare interface HemisphereCfg {
|
|
|
1475
1475
|
intensity: number;
|
|
1476
1476
|
}
|
|
1477
1477
|
|
|
1478
|
+
declare interface ImageTexture {
|
|
1479
|
+
name: string;
|
|
1480
|
+
material: THREE_TYPE.MeshBasicMaterial | THREE_TYPE.MeshStandardMaterial;
|
|
1481
|
+
slot: TextureSlot;
|
|
1482
|
+
lightMapIntensity: number;
|
|
1483
|
+
channel: number;
|
|
1484
|
+
}
|
|
1485
|
+
|
|
1478
1486
|
/**
|
|
1479
1487
|
* Defines the built-in engine infobox settings used to display FPS, CPU/frame timing and renderer.info values.
|
|
1480
1488
|
* @category Cfg
|
|
@@ -1771,23 +1779,26 @@ declare class Model {
|
|
|
1771
1779
|
private gltf;
|
|
1772
1780
|
private meshes;
|
|
1773
1781
|
private scene;
|
|
1774
|
-
private readonly
|
|
1775
|
-
private readonly
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
private
|
|
1779
|
-
private
|
|
1780
|
-
private
|
|
1781
|
-
private
|
|
1782
|
-
private
|
|
1782
|
+
private readonly imageTextures;
|
|
1783
|
+
private readonly imageTextureInits;
|
|
1784
|
+
private readonly textures;
|
|
1785
|
+
constructor({ canvas, cfg, events, modules, renderer, rendererReady, initFirstScene, reportModelReady, waitForRender }: ModelParams);
|
|
1786
|
+
private addMaterialsFromMesh;
|
|
1787
|
+
private addTexturesFromMaterial;
|
|
1788
|
+
private addTexture;
|
|
1789
|
+
private applyImageTexturesToMaterials;
|
|
1790
|
+
private disposeGeometries;
|
|
1791
|
+
private disposeSourceMaterials;
|
|
1792
|
+
private initImageTexture;
|
|
1793
|
+
private initImageTextures;
|
|
1794
|
+
private initTextures;
|
|
1783
1795
|
/* Excluded from this release type: load */
|
|
1784
1796
|
private loadGltf;
|
|
1785
|
-
private
|
|
1797
|
+
private prepareImageTextures;
|
|
1798
|
+
/* Excluded from this release type: prepareImageTextureForMaterial */
|
|
1786
1799
|
private reportError;
|
|
1787
|
-
|
|
1788
|
-
private
|
|
1789
|
-
private updateMeshes;
|
|
1790
|
-
private updateTextImages;
|
|
1800
|
+
private updateGeometries;
|
|
1801
|
+
private updateTextureImages;
|
|
1791
1802
|
}
|
|
1792
1803
|
|
|
1793
1804
|
/**
|
|
@@ -2854,8 +2865,6 @@ export declare type StopMode = 'all' | 'last' | 'none';
|
|
|
2854
2865
|
*/
|
|
2855
2866
|
export declare type TextureSlot = 'ColorMap' | 'LightMap' | 'AlphaMap';
|
|
2856
2867
|
|
|
2857
|
-
/* Excluded from this release type: TextUsed */
|
|
2858
|
-
|
|
2859
2868
|
/** Function returned by an event subscription. Calling it removes the associated listener. */
|
|
2860
2869
|
export declare type Unsubscribe = () => void;
|
|
2861
2870
|
|