@selvajs/visualization 1.6.1 → 1.7.0-beta.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/parse.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { o as MaterialAppearanceOptions } from "./types-DW_qU4-Y.cjs";
1
+ import { o as MaterialAppearanceOptions } from "./types-i9wRcHK7.cjs";
2
2
  import * as THREE from "three";
3
3
  /** Structurally, not nominally, typed as `@selvajs/solve/client`'s `MeshPolicy<THREE.Object3D>` — avoids a dependency on solve. */
4
4
  export declare const meshPolicy: {
package/dist/parse.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { o as MaterialAppearanceOptions } from "./types-DW_qU4-Y.js";
1
+ import { o as MaterialAppearanceOptions } from "./types-i9wRcHK7.js";
2
2
  import * as THREE from "three";
3
3
  /** Structurally, not nominally, typed as `@selvajs/solve/client`'s `MeshPolicy<THREE.Object3D>` — avoids a dependency on solve. */
4
4
  export declare const meshPolicy: {
package/dist/parse.js CHANGED
@@ -1,4 +1,4 @@
1
- import { S as VisualizationError, a as observeMaxAnisotropy, c as computeCombinedBoundingBox, d as EMISSIVE_LIGHT, h as lookEnvMapIntensity, i as isGlass, l as parseColor, m as OWN_ENV_MAP_INTENSITY, n as GLASS, p as OWN_EMISSIVE, s as applyOffset, t as disposeObjectTree, x as ErrorCodes, y as getLogger } from "./gpu-dispose-Di_nxeXF.js";
1
+ import { S as VisualizationError, a as observeMaxAnisotropy, c as computeCombinedBoundingBox, d as EMISSIVE_LIGHT, h as lookEnvMapIntensity, i as isGlass, l as parseColor, m as OWN_ENV_MAP_INTENSITY, n as GLASS, p as OWN_EMISSIVE, s as applyOffset, t as disposeObjectTree, x as ErrorCodes, y as getLogger } from "./gpu-dispose-k_Gq-ygL.js";
2
2
  import { a as shareGeometry, o as unshareGeometry } from "./gpu-ownership-Bs9l7hrU.js";
3
3
  import * as THREE from "three";
4
4
  import { Line2 } from "three/addons/lines/Line2.js";
@@ -2139,7 +2139,7 @@ function createMaterial(matData, options) {
2139
2139
  if (matData.envMapIntensity != null) {
2140
2140
  material.envMapIntensity = matData.envMapIntensity;
2141
2141
  material.userData[OWN_ENV_MAP_INTENSITY] = matData.envMapIntensity;
2142
- } else if (appearance?.envMapIntensity != null) material.envMapIntensity = lookEnvMapIntensity(appearance.envMapIntensity, matData.metalness);
2142
+ } else if (appearance?.envMapIntensity != null) material.envMapIntensity = lookEnvMapIntensity(appearance.envMapIntensity, matData.metalness, appearance.metalReflection);
2143
2143
  if (matData.emissive != null) {
2144
2144
  material.emissive.set(matData.emissive);
2145
2145
  material.emissiveIntensity = matData.emissiveIntensity ?? 1;