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.
@@ -83914,8 +83914,9 @@ float metalnessFactor = metalness;
83914
83914
  // Uniform values (captured by closure, per-object)
83915
83915
  const offset = bb.min.clone();
83916
83916
  const scale = 1.0 / maxDim;
83917
- // Read texture repeat from the material's map (all textures share same repeat)
83918
- const repeat = material.map?.repeat?.clone() ?? new Vector2(1, 1);
83917
+ // Read texture repeat from the first available texture map
83918
+ const repeat = (material.map ?? material.roughnessMap ?? material.normalMap ??
83919
+ material.metalnessMap ?? material.emissiveMap ?? material.aoMap)?.repeat?.clone() ?? new Vector2(1, 1);
83919
83920
  material.onBeforeCompile = (shader) => {
83920
83921
  // Custom uniforms
83921
83922
  shader.uniforms.triplanarOffset = { value: offset };
@@ -94309,7 +94310,7 @@ float metalnessFactor = metalness;
94309
94310
  }
94310
94311
  }
94311
94312
 
94312
- const version = "4.3.6";
94313
+ const version = "4.3.7";
94313
94314
 
94314
94315
  /**
94315
94316
  * Clean room environment for Studio mode PMREM generation.