@mml-io/3d-web-client-core 0.0.0-experimental-45912e3-20240802 → 0.0.0-experimental-4934217-20240805
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.
@@ -1,4 +1,4 @@
|
|
1
|
-
import { IMMLScene, PositionAndRotation } from "mml-web";
|
1
|
+
import { IMMLScene, PositionAndRotation, MMLDocumentTimeManager } from "mml-web";
|
2
2
|
import { AudioListener, Group, PerspectiveCamera, Scene, WebGLRenderer } from "three";
|
3
3
|
import { CollisionsManager } from "../collisions/CollisionsManager";
|
4
4
|
type MMLCompositionSceneConfig = {
|
@@ -14,6 +14,7 @@ export declare class MMLCompositionScene {
|
|
14
14
|
private config;
|
15
15
|
group: Group;
|
16
16
|
readonly mmlScene: IMMLScene;
|
17
|
+
readonly documentTimeManager: MMLDocumentTimeManager;
|
17
18
|
private readonly promptManager;
|
18
19
|
private readonly interactionManager;
|
19
20
|
private readonly interactionListener;
|
@@ -16,7 +16,11 @@ export type EnvironmentConfiguration = {
|
|
16
16
|
blurriness?: number;
|
17
17
|
azimuthalAngle?: number;
|
18
18
|
polarAngle?: number;
|
19
|
-
}
|
19
|
+
} & ({
|
20
|
+
hdrJpgUrl: string;
|
21
|
+
} | {
|
22
|
+
hdrUrl: string;
|
23
|
+
});
|
20
24
|
envMap?: {
|
21
25
|
intensity?: number;
|
22
26
|
};
|
@@ -37,7 +41,6 @@ export declare class Composer {
|
|
37
41
|
private height;
|
38
42
|
private resizeListener;
|
39
43
|
resolution: Vector2;
|
40
|
-
private isEnvHDRI;
|
41
44
|
private readonly scene;
|
42
45
|
postPostScene: Scene;
|
43
46
|
private readonly camera;
|
@@ -63,21 +66,26 @@ export declare class Composer {
|
|
63
66
|
private readonly gaussGrainPass;
|
64
67
|
private ambientLight;
|
65
68
|
private environmentConfiguration?;
|
69
|
+
private skyboxState;
|
66
70
|
sun: Sun | null;
|
67
71
|
spawnSun: boolean;
|
68
72
|
constructor({ scene, camera, spawnSun, environmentConfiguration, }: ComposerContructorArgs);
|
73
|
+
updateEnvironmentConfiguration(environmentConfiguration: EnvironmentConfiguration): void;
|
69
74
|
setupTweakPane(tweakPane: TweakPane): void;
|
70
75
|
dispose(): void;
|
71
76
|
fitContainer(): void;
|
72
77
|
render(timeManager: TimeManager): void;
|
73
78
|
updateSkyboxRotation(): void;
|
79
|
+
private loadHDRJPG;
|
80
|
+
private loadHDRi;
|
74
81
|
useHDRJPG(url: string, fromFile?: boolean): void;
|
75
|
-
useHDRI(url: string
|
82
|
+
useHDRI(url: string): void;
|
76
83
|
setHDRIFromFile(): void;
|
77
84
|
setFog(): void;
|
78
85
|
setAmbientLight(): void;
|
79
86
|
private updateSunValues;
|
80
87
|
private updateSkyboxAndEnvValues;
|
81
88
|
private updateAmbientLightValues;
|
89
|
+
private applyEnvMap;
|
82
90
|
}
|
83
91
|
export {};
|
@@ -26,8 +26,8 @@ export declare class TweakPane {
|
|
26
26
|
private saveVisibilityInLocalStorage;
|
27
27
|
guiVisible: boolean;
|
28
28
|
private tweakPaneWrapper;
|
29
|
+
private eventHandlerCollection;
|
29
30
|
constructor(holderElement: HTMLElement, renderer: WebGLRenderer, scene: Scene, composer: EffectComposer);
|
30
|
-
private setupGUIListeners;
|
31
31
|
private processKey;
|
32
32
|
setupRenderPane(composer: EffectComposer, normalPass: NormalPass, ppssaoEffect: SSAOEffect, ppssaoPass: EffectPass, n8aopass: any, toneMappingEffect: ToneMappingEffect, toneMappingPass: EffectPass, brightnessContrastSaturation: typeof BrightnessContrastSaturation, bloomEffect: BloomEffect, gaussGrainEffect: typeof GaussGrainEffect, hasLighting: boolean, sun: Sun | null, setHDR: () => void, setSkyboxAzimuthalAngle: (azimuthalAngle: number) => void, setSkyboxPolarAngle: (azimuthalAngle: number) => void, setAmbientLight: () => void, setFog: () => void): void;
|
33
33
|
dispose(): void;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@mml-io/3d-web-client-core",
|
3
|
-
"version": "0.0.0-experimental-
|
3
|
+
"version": "0.0.0-experimental-4934217-20240805",
|
4
4
|
"publishConfig": {
|
5
5
|
"access": "public"
|
6
6
|
},
|
@@ -18,7 +18,7 @@
|
|
18
18
|
"lint-fix": "eslint \"./{src,test}/**/*.{js,jsx,ts,tsx}\" --fix"
|
19
19
|
},
|
20
20
|
"dependencies": {
|
21
|
-
"@mml-io/3d-web-avatar": "0.0.0-experimental-
|
21
|
+
"@mml-io/3d-web-avatar": "0.0.0-experimental-4934217-20240805",
|
22
22
|
"@mml-io/model-loader": "0.17.1",
|
23
23
|
"@monogrid/gainmap-js": "^3.0.5",
|
24
24
|
"@tweakpane/core": "2.0.4",
|
@@ -34,5 +34,5 @@
|
|
34
34
|
"devDependencies": {
|
35
35
|
"@types/three": "0.163.0"
|
36
36
|
},
|
37
|
-
"gitHead": "
|
37
|
+
"gitHead": "857ea5986a35bbc171791c58f0366562ac515bce"
|
38
38
|
}
|