three-cad-viewer 4.3.5 → 4.3.6
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/three-cad-viewer.esm.js +5 -3
- package/dist/three-cad-viewer.esm.js.map +1 -1
- package/dist/three-cad-viewer.esm.min.js +1 -1
- package/dist/three-cad-viewer.js +5 -3
- package/dist/three-cad-viewer.min.js +1 -1
- package/package.json +2 -3
- package/src/_version.ts +0 -1
- package/src/camera/camera.ts +0 -445
- package/src/camera/controls/CADOrbitControls.ts +0 -241
- package/src/camera/controls/CADTrackballControls.ts +0 -598
- package/src/camera/controls.ts +0 -380
- package/src/core/patches.ts +0 -16
- package/src/core/studio-manager.ts +0 -652
- package/src/core/types.ts +0 -892
- package/src/core/viewer-state.ts +0 -784
- package/src/core/viewer.ts +0 -4821
- package/src/index.ts +0 -151
- package/src/rendering/environment.ts +0 -840
- package/src/rendering/light-detection.ts +0 -327
- package/src/rendering/material-factory.ts +0 -735
- package/src/rendering/material-presets.ts +0 -289
- package/src/rendering/raycast.ts +0 -291
- package/src/rendering/room-environment.ts +0 -192
- package/src/rendering/studio-composer.ts +0 -577
- package/src/rendering/studio-floor.ts +0 -108
- package/src/rendering/texture-cache.ts +0 -324
- package/src/rendering/tree-model.ts +0 -542
- package/src/rendering/triplanar.ts +0 -329
- package/src/scene/animation.ts +0 -343
- package/src/scene/axes.ts +0 -108
- package/src/scene/bbox.ts +0 -223
- package/src/scene/clipping.ts +0 -650
- package/src/scene/grid.ts +0 -864
- package/src/scene/nestedgroup.ts +0 -1448
- package/src/scene/objectgroup.ts +0 -866
- package/src/scene/orientation.ts +0 -259
- package/src/scene/render-shape.ts +0 -634
- package/src/tools/cad_tools/measure.ts +0 -811
- package/src/tools/cad_tools/select.ts +0 -100
- package/src/tools/cad_tools/tools.ts +0 -231
- package/src/tools/cad_tools/ui.ts +0 -454
- package/src/tools/cad_tools/zebra.ts +0 -369
- package/src/types/html.d.ts +0 -5
- package/src/types/n8ao.d.ts +0 -28
- package/src/types/three-augmentation.d.ts +0 -60
- package/src/ui/display.ts +0 -3295
- package/src/ui/index.html +0 -505
- package/src/ui/info.ts +0 -177
- package/src/ui/slider.ts +0 -206
- package/src/ui/toolbar.ts +0 -347
- package/src/ui/treeview.ts +0 -945
- package/src/utils/decode-instances.ts +0 -233
- package/src/utils/font.ts +0 -60
- package/src/utils/gpu-tracker.ts +0 -265
- package/src/utils/logger.ts +0 -92
- package/src/utils/sizeof.ts +0 -116
- package/src/utils/timer.ts +0 -69
- package/src/utils/utils.ts +0 -446
package/dist/three-cad-viewer.js
CHANGED
|
@@ -83221,9 +83221,11 @@ void main() {
|
|
|
83221
83221
|
const roleForCache = colorSpace === SRGBColorSpace
|
|
83222
83222
|
? "baseColorTexture"
|
|
83223
83223
|
: "normalTexture";
|
|
83224
|
-
|
|
83224
|
+
let tex = await textureCache.get(textureRef, roleForCache);
|
|
83225
83225
|
if (tex) {
|
|
83226
|
-
if (textureRepeat) {
|
|
83226
|
+
if (textureRepeat && (textureRepeat[0] !== 1 || textureRepeat[1] !== 1)) {
|
|
83227
|
+
// Clone to avoid mutating shared cached texture
|
|
83228
|
+
tex = tex.clone();
|
|
83227
83229
|
tex.repeat.set(textureRepeat[0], textureRepeat[1]);
|
|
83228
83230
|
}
|
|
83229
83231
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -94307,7 +94309,7 @@ float metalnessFactor = metalness;
|
|
|
94307
94309
|
}
|
|
94308
94310
|
}
|
|
94309
94311
|
|
|
94310
|
-
const version = "4.3.
|
|
94312
|
+
const version = "4.3.6";
|
|
94311
94313
|
|
|
94312
94314
|
/**
|
|
94313
94315
|
* Clean room environment for Studio mode PMREM generation.
|