three-cad-viewer 4.3.6 → 4.3.7

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.
@@ -83908,8 +83908,9 @@ function applyTriplanarMapping(material, geometry) {
83908
83908
  // Uniform values (captured by closure, per-object)
83909
83909
  const offset = bb.min.clone();
83910
83910
  const scale = 1.0 / maxDim;
83911
- // Read texture repeat from the material's map (all textures share same repeat)
83912
- const repeat = material.map?.repeat?.clone() ?? new Vector2(1, 1);
83911
+ // Read texture repeat from the first available texture map
83912
+ const repeat = (material.map ?? material.roughnessMap ?? material.normalMap ??
83913
+ material.metalnessMap ?? material.emissiveMap ?? material.aoMap)?.repeat?.clone() ?? new Vector2(1, 1);
83913
83914
  material.onBeforeCompile = (shader) => {
83914
83915
  // Custom uniforms
83915
83916
  shader.uniforms.triplanarOffset = { value: offset };
@@ -94303,7 +94304,7 @@ class Tools {
94303
94304
  }
94304
94305
  }
94305
94306
 
94306
- const version = "4.3.6";
94307
+ const version = "4.3.7";
94307
94308
 
94308
94309
  /**
94309
94310
  * Clean room environment for Studio mode PMREM generation.