@mml-io/3d-web-client-core 0.0.0-experimental-ff88de3-20240530 → 0.0.0-experimental-27180bc-20240609

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/build/index.d.ts CHANGED
@@ -15,3 +15,4 @@ export { CollisionsManager } from "./collisions/CollisionsManager";
15
15
  export { Sun } from "./sun/Sun";
16
16
  export { GroundPlane } from "./ground-plane/GroundPlane";
17
17
  export { LoadingScreen } from "./loading-screen/LoadingScreen";
18
+ export { EnvironmentConfiguration } from "./rendering/composer";
package/build/index.js CHANGED
@@ -1810,7 +1810,7 @@ var LocalController = class {
1810
1810
  i
1811
1811
  );
1812
1812
  }
1813
- if (this.config.character.position.y < 0) {
1813
+ if (this.config.character.position.y < -100) {
1814
1814
  this.resetPosition();
1815
1815
  }
1816
1816
  this.updateNetworkState();
@@ -2615,10 +2615,11 @@ var sunOptions = {
2615
2615
  sunIntensity: { min: 0, max: 10, step: 0.1 }
2616
2616
  };
2617
2617
  var envValues = {
2618
- hdrAzimuthalAngle: 0,
2619
- hdrPolarAngle: 0,
2620
- hdrIntensity: 0.8,
2621
- hdrBlurriness: 0,
2618
+ skyboxAzimuthalAngle: 0,
2619
+ skyboxPolarAngle: 0,
2620
+ envMapIntensity: 0.07,
2621
+ skyboxIntensity: 0.8,
2622
+ skyboxBlurriness: 0,
2622
2623
  ambientLight: {
2623
2624
  ambientLightIntensity: 0.27,
2624
2625
  ambientLightColor: { r: 1, g: 1, b: 1 }
@@ -2630,10 +2631,10 @@ var envValues = {
2630
2631
  }
2631
2632
  };
2632
2633
  var envOptions = {
2633
- hdrAzimuthalAngle: { min: 0, max: 360, step: 1 },
2634
- hdrPolarAngle: { min: 0, max: 360, step: 1 },
2635
- hdrIntensity: { min: 0, max: 1.3, step: 0.01 },
2636
- hdrBlurriness: { min: 0, max: 0.1, step: 1e-3 },
2634
+ skyboxAzimuthalAngle: { min: 0, max: 360, step: 1 },
2635
+ skyboxPolarAngle: { min: 0, max: 360, step: 1 },
2636
+ skyboxIntensity: { min: 0, max: 1.3, step: 0.01 },
2637
+ skyboxBlurriness: { min: 0, max: 0.1, step: 1e-3 },
2637
2638
  ambientLight: {
2638
2639
  ambientLightIntensity: { min: 0, max: 1, step: 0.01 }
2639
2640
  },
@@ -2646,6 +2647,9 @@ var EnvironmentFolder = class {
2646
2647
  constructor(parentFolder, expand = false) {
2647
2648
  this.folder = parentFolder.addFolder({ title: "environment", expanded: expand });
2648
2649
  this.sun = this.folder.addFolder({ title: "sun", expanded: true });
2650
+ this.envMap = this.folder.addFolder({ title: "envMap", expanded: true });
2651
+ this.fog = this.folder.addFolder({ title: "fog", expanded: true });
2652
+ this.skybox = this.folder.addFolder({ title: "skybox", expanded: true });
2649
2653
  this.ambient = this.folder.addFolder({ title: "ambient", expanded: true });
2650
2654
  this.sun.addBinding(
2651
2655
  sunValues.sunPosition,
@@ -2661,11 +2665,12 @@ var EnvironmentFolder = class {
2661
2665
  this.sun.addBinding(sunValues, "sunColor", {
2662
2666
  color: { type: "float" }
2663
2667
  });
2664
- this.hdrButton = this.ambient.addButton({ title: "Set HDRI" });
2665
- this.ambient.addBinding(envValues, "hdrIntensity", envOptions.hdrIntensity);
2666
- this.ambient.addBinding(envValues, "hdrBlurriness", envOptions.hdrBlurriness);
2667
- this.ambient.addBinding(envValues, "hdrAzimuthalAngle", envOptions.hdrAzimuthalAngle);
2668
- this.ambient.addBinding(envValues, "hdrPolarAngle", envOptions.hdrPolarAngle);
2668
+ this.hdrButton = this.skybox.addButton({ title: "Set HDRI" });
2669
+ this.skybox.addBinding(envValues, "skyboxIntensity", envOptions.skyboxIntensity);
2670
+ this.skybox.addBinding(envValues, "skyboxBlurriness", envOptions.skyboxBlurriness);
2671
+ this.skybox.addBinding(envValues, "skyboxAzimuthalAngle", envOptions.skyboxAzimuthalAngle);
2672
+ this.skybox.addBinding(envValues, "skyboxPolarAngle", envOptions.skyboxPolarAngle);
2673
+ this.envMap.addBinding(envValues, "envMapIntensity", envOptions.skyboxIntensity);
2669
2674
  this.ambient.addBinding(
2670
2675
  envValues.ambientLight,
2671
2676
  "ambientLightIntensity",
@@ -2674,13 +2679,13 @@ var EnvironmentFolder = class {
2674
2679
  this.ambient.addBinding(envValues.ambientLight, "ambientLightColor", {
2675
2680
  color: { type: "float" }
2676
2681
  });
2677
- this.ambient.addBinding(envValues.fog, "fogNear", envOptions.fog.fogNear);
2678
- this.ambient.addBinding(envValues.fog, "fogFar", envOptions.fog.fogFar);
2679
- this.ambient.addBinding(envValues.fog, "fogColor", {
2682
+ this.fog.addBinding(envValues.fog, "fogNear", envOptions.fog.fogNear);
2683
+ this.fog.addBinding(envValues.fog, "fogFar", envOptions.fog.fogFar);
2684
+ this.fog.addBinding(envValues.fog, "fogColor", {
2680
2685
  color: { type: "float" }
2681
2686
  });
2682
2687
  }
2683
- setupChangeEvent(scene, setHDR, setHDRAzimuthalAngle, setHDRPolarAngle, setAmbientLight, setFog, sun) {
2688
+ setupChangeEvent(scene, setHDR, setSkyboxAzimuthalAngle, setSkyboxPolarAngle, setAmbientLight, setFog, sun) {
2684
2689
  this.sun.on("change", (e) => {
2685
2690
  const target = e.target.key;
2686
2691
  if (!target)
@@ -2718,27 +2723,45 @@ var EnvironmentFolder = class {
2718
2723
  this.hdrButton.on("click", () => {
2719
2724
  setHDR();
2720
2725
  });
2721
- this.ambient.on("change", (e) => {
2726
+ this.envMap.on("change", (e) => {
2722
2727
  const target = e.target.key;
2723
2728
  if (!target)
2724
2729
  return;
2725
2730
  switch (target) {
2726
- case "hdrAzimuthalAngle": {
2731
+ case "envMapIntensity":
2732
+ scene.environmentIntensity = e.value;
2733
+ break;
2734
+ }
2735
+ });
2736
+ this.skybox.on("change", (e) => {
2737
+ const target = e.target.key;
2738
+ if (!target)
2739
+ return;
2740
+ switch (target) {
2741
+ case "skyboxAzimuthalAngle": {
2727
2742
  const value = e.value;
2728
- setHDRAzimuthalAngle(value);
2743
+ setSkyboxAzimuthalAngle(value);
2729
2744
  break;
2730
2745
  }
2731
- case "hdrPolarAngle": {
2746
+ case "skyboxPolarAngle": {
2732
2747
  const value = e.value;
2733
- setHDRPolarAngle(value);
2748
+ envValues.skyboxPolarAngle = value;
2749
+ setSkyboxPolarAngle(value);
2734
2750
  break;
2735
2751
  }
2736
- case "hdrIntensity":
2752
+ case "skyboxIntensity":
2737
2753
  scene.backgroundIntensity = e.value;
2738
2754
  break;
2739
- case "hdrBlurriness":
2755
+ case "skyboxBlurriness":
2740
2756
  scene.backgroundBlurriness = e.value;
2741
2757
  break;
2758
+ }
2759
+ });
2760
+ this.ambient.on("change", (e) => {
2761
+ const target = e.target.key;
2762
+ if (!target)
2763
+ return;
2764
+ switch (target) {
2742
2765
  case "ambientLightIntensity": {
2743
2766
  envValues.ambientLight.ambientLightIntensity = e.value;
2744
2767
  setAmbientLight();
@@ -2754,6 +2777,13 @@ var EnvironmentFolder = class {
2754
2777
  setAmbientLight();
2755
2778
  break;
2756
2779
  }
2780
+ }
2781
+ });
2782
+ this.fog.on("change", (e) => {
2783
+ const target = e.target.key;
2784
+ if (!target)
2785
+ return;
2786
+ switch (target) {
2757
2787
  case "fogNear": {
2758
2788
  envValues.fog.fogNear = e.value;
2759
2789
  setFog();
@@ -2774,8 +2804,6 @@ var EnvironmentFolder = class {
2774
2804
  setFog();
2775
2805
  break;
2776
2806
  }
2777
- default:
2778
- break;
2779
2807
  }
2780
2808
  });
2781
2809
  }
@@ -3404,9 +3432,10 @@ var TweakPane = class {
3404
3432
  this.characterControls = new CharacterControlsFolder(this.gui, false);
3405
3433
  this.toneMappingFolder.folder.hidden = rendererValues.toneMapping === 5 ? false : true;
3406
3434
  this.export = this.gui.addFolder({ title: "import / export", expanded: false });
3407
- window.addEventListener("keydown", this.processKey.bind(this));
3408
- this.setupRenderPane = this.setupRenderPane.bind(this);
3409
- this.setupGUIListeners.bind(this)();
3435
+ window.addEventListener("keydown", (e) => {
3436
+ this.processKey(e);
3437
+ });
3438
+ this.setupGUIListeners();
3410
3439
  }
3411
3440
  setupGUIListeners() {
3412
3441
  const gui = this.gui;
@@ -3421,7 +3450,7 @@ var TweakPane = class {
3421
3450
  if (e.key === "p")
3422
3451
  this.toggleGUI();
3423
3452
  }
3424
- setupRenderPane(composer, normalPass, ppssaoEffect, ppssaoPass, n8aopass, toneMappingEffect, toneMappingPass, brightnessContrastSaturation, bloomEffect, gaussGrainEffect, hasLighting, sun, setHDR, setHDRAzimuthalAngle, setHDRPolarAngle, setAmbientLight, setFog) {
3453
+ setupRenderPane(composer, normalPass, ppssaoEffect, ppssaoPass, n8aopass, toneMappingEffect, toneMappingPass, brightnessContrastSaturation, bloomEffect, gaussGrainEffect, hasLighting, sun, setHDR, setSkyboxAzimuthalAngle, setSkyboxPolarAngle, setAmbientLight, setFog) {
3425
3454
  this.rendererFolder.setupChangeEvent(
3426
3455
  this.renderer,
3427
3456
  this.toneMappingFolder.folder,
@@ -3434,8 +3463,8 @@ var TweakPane = class {
3434
3463
  this.environment.setupChangeEvent(
3435
3464
  this.scene,
3436
3465
  setHDR,
3437
- setHDRAzimuthalAngle,
3438
- setHDRPolarAngle,
3466
+ setSkyboxAzimuthalAngle,
3467
+ setSkyboxPolarAngle,
3439
3468
  setAmbientLight,
3440
3469
  setFog,
3441
3470
  sun
@@ -3524,37 +3553,37 @@ var TweakPane = class {
3524
3553
  // src/rendering/composer.ts
3525
3554
  import { HDRJPGLoader } from "@monogrid/gainmap-js";
3526
3555
  import {
3556
+ BlendFunction as BlendFunction2,
3557
+ BloomEffect,
3558
+ EdgeDetectionMode,
3527
3559
  EffectComposer as EffectComposer2,
3528
- RenderPass,
3529
3560
  EffectPass as EffectPass2,
3530
3561
  FXAAEffect,
3562
+ NormalPass as NormalPass2,
3563
+ PredicationMode,
3564
+ RenderPass,
3531
3565
  ShaderPass,
3532
- BloomEffect,
3533
- SSAOEffect as SSAOEffect2,
3534
- BlendFunction as BlendFunction2,
3535
- TextureEffect,
3536
- ToneMappingEffect,
3537
3566
  SMAAEffect,
3538
3567
  SMAAPreset,
3539
- EdgeDetectionMode,
3540
- PredicationMode,
3541
- NormalPass as NormalPass2
3568
+ SSAOEffect as SSAOEffect2,
3569
+ TextureEffect,
3570
+ ToneMappingEffect
3542
3571
  } from "postprocessing";
3543
3572
  import {
3544
3573
  AmbientLight,
3545
3574
  Color as Color7,
3575
+ EquirectangularReflectionMapping,
3576
+ Euler as Euler3,
3546
3577
  Fog as Fog2,
3547
3578
  HalfFloatType as HalfFloatType2,
3548
3579
  LinearSRGBColorSpace,
3549
3580
  LoadingManager,
3581
+ MathUtils,
3550
3582
  PMREMGenerator,
3551
- SRGBColorSpace,
3552
3583
  Scene as Scene4,
3584
+ SRGBColorSpace,
3553
3585
  Vector2 as Vector27,
3554
- WebGLRenderer as WebGLRenderer4,
3555
- EquirectangularReflectionMapping,
3556
- MathUtils,
3557
- Euler as Euler3
3586
+ WebGLRenderer as WebGLRenderer4
3558
3587
  } from "three";
3559
3588
  import { RGBELoader } from "three/examples/jsm/loaders/RGBELoader.js";
3560
3589
 
@@ -5097,7 +5126,12 @@ var N8SSAOPass = class extends Pass {
5097
5126
 
5098
5127
  // src/rendering/composer.ts
5099
5128
  var Composer = class {
5100
- constructor(scene, camera, spawnSun = false) {
5129
+ constructor({
5130
+ scene,
5131
+ camera,
5132
+ spawnSun = false,
5133
+ environmentConfiguration
5134
+ }) {
5101
5135
  this.width = 1;
5102
5136
  this.height = 1;
5103
5137
  this.resolution = new Vector27(this.width, this.height);
@@ -5106,6 +5140,7 @@ var Composer = class {
5106
5140
  this.gaussGrainEffect = GaussGrainEffect;
5107
5141
  this.ambientLight = null;
5108
5142
  this.sun = null;
5143
+ var _a;
5109
5144
  this.scene = scene;
5110
5145
  this.postPostScene = new Scene4();
5111
5146
  this.camera = camera;
@@ -5121,9 +5156,9 @@ var Composer = class {
5121
5156
  this.renderer.shadowMap.type = rendererValues.shadowMap;
5122
5157
  this.renderer.toneMapping = rendererValues.toneMapping;
5123
5158
  this.renderer.toneMappingExposure = rendererValues.exposure;
5124
- this.scene.backgroundIntensity = envValues.hdrIntensity;
5125
- this.scene.backgroundBlurriness = envValues.hdrBlurriness;
5126
- this.setAmbientLight();
5159
+ this.environmentConfiguration = environmentConfiguration;
5160
+ this.updateSkyboxAndEnvValues();
5161
+ this.updateAmbientLightValues();
5127
5162
  this.setFog();
5128
5163
  this.effectComposer = new EffectComposer2(this.renderer, {
5129
5164
  frameBufferType: HalfFloatType2
@@ -5156,6 +5191,9 @@ var Composer = class {
5156
5191
  this.ppssaoPass = new EffectPass2(this.camera, this.ppssaoEffect, this.normalTextureEffect);
5157
5192
  this.ppssaoPass.enabled = ppssaoValues.enabled;
5158
5193
  this.fxaaEffect = new FXAAEffect();
5194
+ if ((_a = environmentConfiguration == null ? void 0 : environmentConfiguration.postProcessing) == null ? void 0 : _a.bloomIntensity) {
5195
+ extrasValues.bloom = environmentConfiguration.postProcessing.bloomIntensity;
5196
+ }
5159
5197
  this.bloomEffect = new BloomEffect({
5160
5198
  intensity: extrasValues.bloom
5161
5199
  });
@@ -5215,6 +5253,7 @@ var Composer = class {
5215
5253
  this.sun = new Sun();
5216
5254
  this.scene.add(this.sun);
5217
5255
  }
5256
+ this.updateSunValues();
5218
5257
  this.resizeListener = () => {
5219
5258
  this.fitContainer();
5220
5259
  };
@@ -5236,8 +5275,14 @@ var Composer = class {
5236
5275
  this.spawnSun,
5237
5276
  this.sun,
5238
5277
  this.setHDRIFromFile.bind(this),
5239
- this.setHDRAzimuthalAngle.bind(this),
5240
- this.setHDRPolarAngle.bind(this),
5278
+ (azimuthalAngle) => {
5279
+ envValues.skyboxAzimuthalAngle = azimuthalAngle;
5280
+ this.updateSkyboxRotation();
5281
+ },
5282
+ (polarAngle) => {
5283
+ envValues.skyboxPolarAngle = polarAngle;
5284
+ this.updateSkyboxRotation();
5285
+ },
5241
5286
  this.setAmbientLight.bind(this),
5242
5287
  this.setFog.bind(this)
5243
5288
  );
@@ -5292,17 +5337,15 @@ var Composer = class {
5292
5337
  this.renderer.clearDepth();
5293
5338
  this.renderer.render(this.postPostScene, this.camera);
5294
5339
  }
5295
- setHDRAzimuthalAngle(azimuthalAngle) {
5340
+ updateSkyboxRotation() {
5296
5341
  this.scene.backgroundRotation = new Euler3(
5297
- MathUtils.degToRad(envValues.hdrPolarAngle),
5298
- MathUtils.degToRad(azimuthalAngle),
5342
+ MathUtils.degToRad(envValues.skyboxPolarAngle),
5343
+ MathUtils.degToRad(envValues.skyboxAzimuthalAngle),
5299
5344
  0
5300
5345
  );
5301
- }
5302
- setHDRPolarAngle(polarAngle) {
5303
- this.scene.backgroundRotation = new Euler3(
5304
- MathUtils.degToRad(polarAngle),
5305
- MathUtils.degToRad(envValues.hdrAzimuthalAngle),
5346
+ this.scene.environmentRotation = new Euler3(
5347
+ MathUtils.degToRad(envValues.skyboxPolarAngle),
5348
+ MathUtils.degToRad(envValues.skyboxAzimuthalAngle),
5306
5349
  0
5307
5350
  );
5308
5351
  }
@@ -5316,12 +5359,19 @@ var Composer = class {
5316
5359
  if (envMap) {
5317
5360
  envMap.colorSpace = LinearSRGBColorSpace;
5318
5361
  envMap.needsUpdate = true;
5362
+ this.scene.environment = envMap;
5363
+ this.scene.environmentIntensity = envValues.envMapIntensity;
5364
+ this.scene.environmentRotation = new Euler3(
5365
+ MathUtils.degToRad(envValues.skyboxPolarAngle),
5366
+ MathUtils.degToRad(envValues.skyboxAzimuthalAngle),
5367
+ 0
5368
+ );
5319
5369
  this.scene.background = envMap;
5320
- this.scene.backgroundIntensity = envValues.hdrIntensity;
5321
- this.scene.backgroundBlurriness = envValues.hdrBlurriness;
5370
+ this.scene.backgroundIntensity = envValues.skyboxIntensity;
5371
+ this.scene.backgroundBlurriness = envValues.skyboxBlurriness;
5322
5372
  this.scene.backgroundRotation = new Euler3(
5323
- MathUtils.degToRad(envValues.hdrPolarAngle),
5324
- MathUtils.degToRad(envValues.hdrAzimuthalAngle),
5373
+ MathUtils.degToRad(envValues.skyboxPolarAngle),
5374
+ MathUtils.degToRad(envValues.skyboxAzimuthalAngle),
5325
5375
  0
5326
5376
  );
5327
5377
  this.isEnvHDRI = true;
@@ -5332,8 +5382,9 @@ var Composer = class {
5332
5382
  });
5333
5383
  }
5334
5384
  useHDRI(url, fromFile = false) {
5335
- if (this.isEnvHDRI && fromFile === false || !this.renderer)
5385
+ if (this.isEnvHDRI && fromFile === false || !this.renderer) {
5336
5386
  return;
5387
+ }
5337
5388
  const pmremGenerator = new PMREMGenerator(this.renderer);
5338
5389
  new RGBELoader(new LoadingManager()).load(
5339
5390
  url,
@@ -5342,9 +5393,16 @@ var Composer = class {
5342
5393
  if (envMap) {
5343
5394
  envMap.colorSpace = LinearSRGBColorSpace;
5344
5395
  envMap.needsUpdate = true;
5396
+ this.scene.environment = envMap;
5397
+ this.scene.environmentIntensity = envValues.envMapIntensity;
5398
+ this.scene.environmentRotation = new Euler3(
5399
+ MathUtils.degToRad(envValues.skyboxPolarAngle),
5400
+ MathUtils.degToRad(envValues.skyboxAzimuthalAngle),
5401
+ 0
5402
+ );
5345
5403
  this.scene.background = envMap;
5346
- this.scene.backgroundIntensity = envValues.hdrIntensity;
5347
- this.scene.backgroundBlurriness = envValues.hdrBlurriness;
5404
+ this.scene.backgroundIntensity = envValues.skyboxIntensity;
5405
+ this.scene.backgroundBlurriness = envValues.skyboxBlurriness;
5348
5406
  this.isEnvHDRI = true;
5349
5407
  texture.dispose();
5350
5408
  pmremGenerator.dispose();
@@ -5411,6 +5469,51 @@ var Composer = class {
5411
5469
  );
5412
5470
  this.scene.add(this.ambientLight);
5413
5471
  }
5472
+ updateSunValues() {
5473
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i;
5474
+ if (typeof ((_b = (_a = this.environmentConfiguration) == null ? void 0 : _a.sun) == null ? void 0 : _b.intensity) === "number") {
5475
+ sunValues.sunIntensity = this.environmentConfiguration.sun.intensity;
5476
+ (_c = this.sun) == null ? void 0 : _c.setIntensity(this.environmentConfiguration.sun.intensity);
5477
+ }
5478
+ if (typeof ((_e = (_d = this.environmentConfiguration) == null ? void 0 : _d.sun) == null ? void 0 : _e.azimuthalAngle) === "number") {
5479
+ sunValues.sunPosition.sunAzimuthalAngle = this.environmentConfiguration.sun.azimuthalAngle;
5480
+ (_f = this.sun) == null ? void 0 : _f.setAzimuthalAngle(this.environmentConfiguration.sun.azimuthalAngle);
5481
+ }
5482
+ if (typeof ((_h = (_g = this.environmentConfiguration) == null ? void 0 : _g.sun) == null ? void 0 : _h.polarAngle) === "number") {
5483
+ sunValues.sunPosition.sunPolarAngle = this.environmentConfiguration.sun.polarAngle;
5484
+ (_i = this.sun) == null ? void 0 : _i.setPolarAngle(this.environmentConfiguration.sun.polarAngle);
5485
+ }
5486
+ }
5487
+ updateSkyboxAndEnvValues() {
5488
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
5489
+ if (typeof ((_b = (_a = this.environmentConfiguration) == null ? void 0 : _a.envMap) == null ? void 0 : _b.intensity) === "number") {
5490
+ envValues.envMapIntensity = (_c = this.environmentConfiguration) == null ? void 0 : _c.envMap.intensity;
5491
+ }
5492
+ this.scene.environmentIntensity = envValues.envMapIntensity;
5493
+ if (typeof ((_e = (_d = this.environmentConfiguration) == null ? void 0 : _d.skybox) == null ? void 0 : _e.intensity) === "number") {
5494
+ envValues.skyboxIntensity = (_f = this.environmentConfiguration) == null ? void 0 : _f.skybox.intensity;
5495
+ }
5496
+ this.scene.backgroundIntensity = envValues.skyboxIntensity;
5497
+ if (typeof ((_h = (_g = this.environmentConfiguration) == null ? void 0 : _g.skybox) == null ? void 0 : _h.blurriness) === "number") {
5498
+ envValues.skyboxBlurriness = (_i = this.environmentConfiguration) == null ? void 0 : _i.skybox.blurriness;
5499
+ }
5500
+ this.scene.backgroundBlurriness = envValues.skyboxBlurriness;
5501
+ if (typeof ((_k = (_j = this.environmentConfiguration) == null ? void 0 : _j.skybox) == null ? void 0 : _k.azimuthalAngle) === "number") {
5502
+ envValues.skyboxAzimuthalAngle = (_l = this.environmentConfiguration) == null ? void 0 : _l.skybox.azimuthalAngle;
5503
+ this.updateSkyboxRotation();
5504
+ }
5505
+ if (typeof ((_n = (_m = this.environmentConfiguration) == null ? void 0 : _m.skybox) == null ? void 0 : _n.polarAngle) === "number") {
5506
+ envValues.skyboxPolarAngle = (_o = this.environmentConfiguration) == null ? void 0 : _o.skybox.polarAngle;
5507
+ this.updateSkyboxRotation();
5508
+ }
5509
+ }
5510
+ updateAmbientLightValues() {
5511
+ var _a, _b;
5512
+ if (typeof ((_b = (_a = this.environmentConfiguration) == null ? void 0 : _a.ambientLight) == null ? void 0 : _b.intensity) === "number") {
5513
+ envValues.ambientLight.ambientLightIntensity = this.environmentConfiguration.ambientLight.intensity;
5514
+ this.setAmbientLight();
5515
+ }
5516
+ }
5414
5517
  };
5415
5518
 
5416
5519
  // src/time/TimeManager.ts