@perceptimagery/dita-configurator-staging 0.1.7000 → 0.1.7101
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/index.js +10 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -111,7 +111,7 @@ var __publicField = (obj, key, value) => {
|
|
|
111
111
|
host: "https://api.sprie.io"
|
|
112
112
|
};
|
|
113
113
|
const config = Object.freeze(Config$1);
|
|
114
|
-
const version$1 = "0.1.
|
|
114
|
+
const version$1 = "0.1.7101";
|
|
115
115
|
function modifyLensArr(arr, element) {
|
|
116
116
|
const index = arr.findIndex((e) => e["sku"] === element["sku"]);
|
|
117
117
|
if (index !== -1) {
|
|
@@ -41481,17 +41481,20 @@ bool bvhIntersectFirstHit(
|
|
|
41481
41481
|
this.renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2));
|
|
41482
41482
|
const rgbeLoader = new RGBELoader();
|
|
41483
41483
|
rgbeLoader.load(
|
|
41484
|
-
"https://sprie-jarvis-public.s3.eu-west-2.amazonaws.com/
|
|
41484
|
+
"https://sprie-jarvis-public.s3.eu-west-2.amazonaws.com/environment_desaturated.hdr",
|
|
41485
41485
|
(environmentMap) => {
|
|
41486
41486
|
environmentMap.mapping = EquirectangularReflectionMapping;
|
|
41487
41487
|
this.scene.environment = environmentMap;
|
|
41488
41488
|
}
|
|
41489
41489
|
);
|
|
41490
|
-
rgbeLoader.
|
|
41491
|
-
|
|
41492
|
-
|
|
41493
|
-
|
|
41494
|
-
|
|
41490
|
+
rgbeLoader.load(
|
|
41491
|
+
"https://sprie-jarvis-public.s3.eu-west-2.amazonaws.com/environment_gemstones.hdr",
|
|
41492
|
+
(reflectionMap) => {
|
|
41493
|
+
reflectionMap.mapping = EquirectangularReflectionMapping;
|
|
41494
|
+
diamondMaterial.uniforms.envMap.value = reflectionMap;
|
|
41495
|
+
envMap = reflectionMap;
|
|
41496
|
+
}
|
|
41497
|
+
);
|
|
41495
41498
|
const aberrationStrength = 0.01;
|
|
41496
41499
|
const isCubeTexture = (def) => def && def.isCubeTexture;
|
|
41497
41500
|
diamondMaterial.uniforms.aberrationStrength.value = aberrationStrength;
|
|
@@ -41571,7 +41574,6 @@ bool bvhIntersectFirstHit(
|
|
|
41571
41574
|
gltf.scene.traverse((node) => {
|
|
41572
41575
|
if (node.isMesh) {
|
|
41573
41576
|
bottom = Math.min(bottom, this.getMinY(node));
|
|
41574
|
-
console.log("node name", node.name);
|
|
41575
41577
|
if (node.material && node.material.name == "Lenses") {
|
|
41576
41578
|
let lowestY = Number.POSITIVE_INFINITY;
|
|
41577
41579
|
let highestY = Number.NEGATIVE_INFINITY;
|
|
@@ -41677,7 +41679,6 @@ bool bvhIntersectFirstHit(
|
|
|
41677
41679
|
}
|
|
41678
41680
|
}
|
|
41679
41681
|
if (node.material && node.name === "Diamonds") {
|
|
41680
|
-
console.log("Diamond mesh detected");
|
|
41681
41682
|
diamondMaterial.uniforms.bvh.value = new MeshBVHUniformStruct();
|
|
41682
41683
|
diamondMaterial.uniforms.bvh.value.updateFrom(
|
|
41683
41684
|
new MeshBVH(node.geometry.clone().toNonIndexed(), { strategy: SAH })
|