@soonspacejs/plugin-atmosphere 2.14.36 → 2.15.0

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/dist/index.d.ts CHANGED
@@ -2,6 +2,7 @@ import { default as SoonSpace, IColor } from 'soonspacejs';
2
2
  import { BufferGeometry, CubeCamera, Matrix4, Mesh, Vector3, WebGLCubeRenderTarget } from 'three';
3
3
  import { Effect } from 'postprocessing';
4
4
  import { AerialPerspectiveEffect, SkyLightProbe, SkyMaterial, SunDirectionalLight, PrecomputedTexturesGenerator, LightingMaskPass } from '@takram/three-atmosphere';
5
+ import { CloudsEffect, CloudsEffectChangeEvent } from '@takram/three-clouds';
5
6
  import { ArrayBufferLoader } from '@takram/three-geospatial';
6
7
  import { LensFlareEffect, DitheringEffect } from '@takram/three-geospatial-effects';
7
8
  type EffectState<T = Effect> = {
@@ -19,6 +20,8 @@ declare class AtmospherePlugin {
19
20
  target: Vector3;
20
21
  groundAlbedo: IColor;
21
22
  castShadow: boolean;
23
+ cloudCoverage: number;
24
+ cloudQuality: 'low' | 'medium' | 'high' | 'ultra';
22
25
  set neesUpdate(value: boolean);
23
26
  atmosphereProps: {
24
27
  inertialToECEFMatrix: Matrix4;
@@ -41,12 +44,20 @@ declare class AtmospherePlugin {
41
44
  lightingMaskPass: LightingMaskPass;
42
45
  cubeRenderTarget: WebGLCubeRenderTarget;
43
46
  cubeCamera: CubeCamera;
47
+ cloudsEffect: CloudsEffect;
48
+ clouds: EffectState<CloudsEffect>;
44
49
  _started: boolean;
45
50
  constructor(ssp: SoonSpace);
51
+ onCloudsChange: (event: CloudsEffectChangeEvent) => void;
46
52
  update: () => void;
47
53
  protected getCacheKey(): string;
48
54
  start(): void;
49
55
  updateModelLightingMask(): void;
56
+ loadCloudTextures(basePath: string): void;
57
+ setCloudLayer(options: {
58
+ coverage?: number;
59
+ quality?: 'low' | 'medium' | 'high' | 'ultra';
60
+ }): void;
50
61
  stop(): void;
51
62
  dispose(): void;
52
63
  }