@mml-io/3d-web-client-core 0.0.0-experimental-f169fed-20240520 → 0.0.0-experimental-8634a66-20240605

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.
@@ -3,6 +3,35 @@ import { PerspectiveCamera, Scene, Vector2, WebGLRenderer } from "three";
3
3
  import { Sun } from "../sun/Sun";
4
4
  import { TimeManager } from "../time/TimeManager";
5
5
  import { TweakPane } from "../tweakpane/TweakPane";
6
+ type ComposerContructorArgs = {
7
+ scene: Scene;
8
+ camera: PerspectiveCamera;
9
+ spawnSun: boolean;
10
+ environmentConfiguration?: EnvironmentConfiguration;
11
+ };
12
+ export type EnvironmentConfiguration = {
13
+ groundPlane?: boolean;
14
+ skybox?: {
15
+ intensity?: number;
16
+ blurriness?: number;
17
+ azimuthalAngle?: number;
18
+ polarAngle?: number;
19
+ };
20
+ envMap?: {
21
+ intensity?: number;
22
+ };
23
+ sun?: {
24
+ intensity?: number;
25
+ polarAngle?: number;
26
+ azimuthalAngle?: number;
27
+ };
28
+ postProcessing?: {
29
+ bloomIntensity?: number;
30
+ };
31
+ ambientLight?: {
32
+ intensity?: number;
33
+ };
34
+ };
6
35
  export declare class Composer {
7
36
  private width;
8
37
  private height;
@@ -33,9 +62,10 @@ export declare class Composer {
33
62
  private readonly gaussGrainEffect;
34
63
  private readonly gaussGrainPass;
35
64
  private ambientLight;
65
+ private environmentConfiguration?;
36
66
  sun: Sun | null;
37
67
  spawnSun: boolean;
38
- constructor(scene: Scene, camera: PerspectiveCamera, spawnSun?: boolean);
68
+ constructor({ scene, camera, spawnSun, environmentConfiguration, }: ComposerContructorArgs);
39
69
  setupTweakPane(tweakPane: TweakPane): void;
40
70
  dispose(): void;
41
71
  fitContainer(): void;
@@ -47,4 +77,8 @@ export declare class Composer {
47
77
  setHDRIFromFile(): void;
48
78
  setFog(): void;
49
79
  setAmbientLight(): void;
80
+ private updateSunValues;
81
+ private updateHDRValues;
82
+ private updateAmbientLightValues;
50
83
  }
84
+ export {};
@@ -16,6 +16,7 @@ export declare const sunValues: {
16
16
  export declare const envValues: {
17
17
  hdrAzimuthalAngle: number;
18
18
  hdrPolarAngle: number;
19
+ hdrEnvIntensity: number;
19
20
  hdrIntensity: number;
20
21
  hdrBlurriness: number;
21
22
  ambientLight: {
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-f169fed-20240520",
3
+ "version": "0.0.0-experimental-8634a66-20240605",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -18,12 +18,12 @@
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-f169fed-20240520",
22
- "@mml-io/model-loader": "0.14.0",
21
+ "@mml-io/3d-web-avatar": "0.0.0-experimental-8634a66-20240605",
22
+ "@mml-io/model-loader": "0.15.0",
23
23
  "@monogrid/gainmap-js": "^3.0.5",
24
24
  "@tweakpane/core": "2.0.3",
25
25
  "@tweakpane/plugin-essentials": "0.2.1",
26
- "mml-web": "0.14.0",
26
+ "mml-web": "0.15.0",
27
27
  "postprocessing": "6.35.4",
28
28
  "three-mesh-bvh": "0.7.4",
29
29
  "tweakpane": "4.0.3"
@@ -34,5 +34,5 @@
34
34
  "devDependencies": {
35
35
  "@types/three": "0.163.0"
36
36
  },
37
- "gitHead": "4ad365e674eb469d67806920a2ac2f40c55e1f25"
37
+ "gitHead": "4ed3528284b3c6b08e63c141dab721007d74841d"
38
38
  }