abstract-3d 4.0.3 → 4.0.4

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
@@ -26,7 +26,7 @@ disposeViewer(viewer);
26
26
 
27
27
  ### Realistic scenes
28
28
 
29
- The viewer lights scenes with a photographed studio and a key light, and draws surfaces by what they are. Three things in the scene data decide how real it looks: what each material is, which parts are abstract, and how round the edges of sheet metal are.
29
+ The viewer lights scenes with a studio, a room with soft area lights, and a key light, and draws surfaces by what they are. Three things in the scene data decide how real it looks: what each material is, which parts are abstract, and how round the edges of sheet metal are.
30
30
 
31
31
  **`type` on `Material`:** what the surface is. Each type gets a physical finish of its own in the material's `normal` color, and `metalness` and `roughness` are then not used. Without a type, a material is drawn as before, by its `metalness` and `roughness`.
32
32
 
@@ -1,9 +1,3 @@
1
- import { type Texture } from "three";
2
- /**
3
- * The viewer's default environment: Poly Haven's "Studio Small 08" HDRI (CC0, polyhaven.com/a/studio_small_08), its 1k version downscaled to 512×256
4
- * with a 2×2 box filter and stored as flat RGBE, base64 encoded. Its floor is a neutral light gray (0.9), blended in just below the horizon, as a
5
- * product photo's white sweep, so metal facing forward or down mirrors a light floor, as the light backgrounds the viewer sits on, not a dark one. A
6
- * module of its own, imported dynamically, so it's a chunk loaded only when the default environment is used
7
- */
8
- export declare function loadStudio(): Promise<Texture>;
1
+ import { type WebGLRenderer, type WebGLRenderTarget } from "three";
2
+ export declare function createStudio(renderer: WebGLRenderer): WebGLRenderTarget;
9
3
  //# sourceMappingURL=studio.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"studio.d.ts","sourceRoot":"","sources":["../../../../src/renderers/three/environment/studio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoC,KAAK,OAAO,EAAE,MAAM,OAAO,CAAC;AAGvE;;;;;GAKG;AAEH,wBAAgB,UAAU,IAAI,OAAO,CAAC,OAAO,CAAC,CAI7C"}
1
+ {"version":3,"file":"studio.d.ts","sourceRoot":"","sources":["../../../../src/renderers/three/environment/studio.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8C,KAAK,aAAa,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAY/G,wBAAgB,YAAY,CAAC,QAAQ,EAAE,aAAa,GAAG,iBAAiB,CAYvE"}