@maucwerk/glimmer 1.1.1 → 1.1.3

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/README.md CHANGED
@@ -847,7 +847,7 @@ Access-Control-Allow-Methods: GET
847
847
  ## Package Structure
848
848
 
849
849
  ```
850
- @maucwerk/glimmer@1.1.1
850
+ @maucwerk/glimmer@1.1.3
851
851
  ├── dist/
852
852
  │ ├── index.d.ts # Main TypeScript declarations
853
853
  │ ├── vite/
@@ -862,7 +862,15 @@ The package supports both ESM and CommonJS with complete TypeScript declarations
862
862
 
863
863
  ## Version History
864
864
 
865
- ### v1.1.1 (Current)
865
+ ### v1.1.3 (Current)
866
+
867
+ - ✅ Sky ambient dimmed to fill level (0.4) — no more blown-out midday; HDR/room keep full strength
868
+
869
+ ### v1.1.2
870
+
871
+ - ✅ Sky dome sun disc follows the light, and image-based ambient light is rebuilt from the sky (no more black shadow sides)
872
+
873
+ ### v1.1.1
866
874
 
867
875
  - ✅ Sky dome sun disc follows the light (solar, explicit or HDR-inferred position)
868
876
 
@@ -27,6 +27,9 @@ export declare class Environment extends EventTarget {
27
27
  env_map: THREE.Texture | null;
28
28
  sky: Sky | null;
29
29
  Sun: Sun | null;
30
+ private sky_pmrem;
31
+ private sky_env_rt;
32
+ private last_sky_dir;
30
33
  constructor(viewer: Viewer, settings: Settings);
31
34
  update(environment_settings: {
32
35
  type: string;
@@ -34,6 +37,13 @@ export declare class Environment extends EventTarget {
34
37
  }): Promise<void>;
35
38
  clear_environment(): void;
36
39
  set_sky_environment(): void;
40
+ /**
41
+ * Point the sky dome's sun disc at the given direction and rebuild the
42
+ * image-based ambient light (scene.environment) from the sky, so both the
43
+ * visible sky and the ambient light follow the sun. Skips the rebuild when
44
+ * the direction barely changed (e.g. during slider drags).
45
+ */
46
+ update_sky_environment(sun_direction: THREE.Vector3): void;
37
47
  set_room_environment(): void;
38
48
  set_color_environment(color?: number): void;
39
49
  set_hdr_environment(url: string, ultra?: boolean): Promise<void>;
@@ -14,8 +14,8 @@ export declare class Sun {
14
14
  constructor(viewer: Viewer, settings: Settings, environment: Environment, model_manager: ModelManager);
15
15
  update(): void;
16
16
  /**
17
- * Point the procedural sky dome at the same sun the light uses, so the
18
- * visible sun disc and the lighting direction stay in agreement.
17
+ * Point the sky dome (and its image-based ambient light) at the same sun
18
+ * the directional light uses, so sky and lighting stay in agreement.
19
19
  */
20
20
  private sync_sky;
21
21
  sun_fit_object(fit_object?: THREE.Object3D): void;