@plasius/gpu-shared 0.1.17 → 0.1.19
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/CHANGELOG.md +18 -0
- package/README.md +3 -0
- package/dist/{chunk-BXTHIQOO.js → chunk-EZHA3MH7.js} +9 -15
- package/dist/chunk-EZHA3MH7.js.map +1 -0
- package/dist/index.cjs +55 -61
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/{product-studio-runtime-CTXA45RJ.js → product-studio-runtime-3KANG3JE.js} +2 -2
- package/package.json +1 -1
- package/src/product-studio-runtime.js +8 -26
- package/dist/chunk-BXTHIQOO.js.map +0 -1
- /package/dist/{product-studio-runtime-CTXA45RJ.js.map → product-studio-runtime-3KANG3JE.js.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createProductStudioMeshes,
|
|
3
3
|
mountGpuProductStudio
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EZHA3MH7.js";
|
|
5
5
|
import {
|
|
6
6
|
GPU_SHOWCASE_PRODUCT_STUDIO_FEATURE,
|
|
7
7
|
GPU_SHOWCASE_REALISTIC_MODELS_FEATURE,
|
|
@@ -58,7 +58,7 @@ async function mountGpuShowcase(options = {}) {
|
|
|
58
58
|
`${GPU_SHOWCASE_PRODUCT_STUDIO_FEATURE} must be enabled before Product Studio can mount.`
|
|
59
59
|
);
|
|
60
60
|
}
|
|
61
|
-
const productRuntimeLoader = typeof options.__productRuntimeLoader === "function" ? options.__productRuntimeLoader : () => import("./product-studio-runtime-
|
|
61
|
+
const productRuntimeLoader = typeof options.__productRuntimeLoader === "function" ? options.__productRuntimeLoader : () => import("./product-studio-runtime-3KANG3JE.js");
|
|
62
62
|
const productModule = await productRuntimeLoader();
|
|
63
63
|
if (typeof productModule.mountGpuProductStudio !== "function") {
|
|
64
64
|
throw new Error("product runtime loader must provide mountGpuProductStudio.");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createProductStudioMeshes,
|
|
3
3
|
mountGpuProductStudio
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EZHA3MH7.js";
|
|
5
5
|
import "./chunk-UKCJ2AWJ.js";
|
|
6
6
|
import "./chunk-2GM64LB6.js";
|
|
7
7
|
import "./chunk-DGUM43GV.js";
|
|
@@ -9,4 +9,4 @@ export {
|
|
|
9
9
|
createProductStudioMeshes,
|
|
10
10
|
mountGpuProductStudio
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=product-studio-runtime-
|
|
12
|
+
//# sourceMappingURL=product-studio-runtime-3KANG3JE.js.map
|
package/package.json
CHANGED
|
@@ -5,10 +5,9 @@ const DEFAULT_PRODUCT_ASSET_URL =
|
|
|
5
5
|
"/data/models/eames-lounge-chair-ottoman/Eames_Lounge_Chair_Ottoman.gltf";
|
|
6
6
|
const DEFAULT_TARGET_CENTER = Object.freeze([0, 0.74, 0]);
|
|
7
7
|
const DEFAULT_TARGET_SIZE = 2.25;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
8
|
+
const DEFAULT_RENDER_WIDTH = 640;
|
|
9
|
+
const DEFAULT_RENDER_HEIGHT = 360;
|
|
10
|
+
const DEFAULT_RENDER_MAX_DEPTH = 2;
|
|
12
11
|
|
|
13
12
|
function isFiniteVector(value) {
|
|
14
13
|
return (
|
|
@@ -359,27 +358,10 @@ function resolveRoot(options) {
|
|
|
359
358
|
return root;
|
|
360
359
|
}
|
|
361
360
|
|
|
362
|
-
function resolveRenderSize(
|
|
363
|
-
const rect = root.getBoundingClientRect?.() ?? { width: 1280, height: 720 };
|
|
364
|
-
const devicePixelRatio =
|
|
365
|
-
Number.isFinite(options.devicePixelRatio)
|
|
366
|
-
? options.devicePixelRatio
|
|
367
|
-
: Number.isFinite(globalThis.window?.devicePixelRatio)
|
|
368
|
-
? globalThis.window.devicePixelRatio
|
|
369
|
-
: 1;
|
|
370
|
-
const cssWidth = Number.isFinite(rect.width) && rect.width > 0 ? rect.width : 1280;
|
|
371
|
-
const cssHeight =
|
|
372
|
-
Number.isFinite(rect.height) && rect.height > 0 ? rect.height : cssWidth * (9 / 16);
|
|
373
|
-
const width = Number.isFinite(options.width)
|
|
374
|
-
? Math.trunc(options.width)
|
|
375
|
-
: clamp(Math.round(cssWidth * devicePixelRatio), 640, 1920);
|
|
376
|
-
const height = Number.isFinite(options.height)
|
|
377
|
-
? Math.trunc(options.height)
|
|
378
|
-
: clamp(Math.round(cssHeight * devicePixelRatio), 360, 1080);
|
|
379
|
-
|
|
361
|
+
function resolveRenderSize(options) {
|
|
380
362
|
return {
|
|
381
|
-
width,
|
|
382
|
-
height,
|
|
363
|
+
width: Number.isFinite(options.width) ? Math.trunc(options.width) : DEFAULT_RENDER_WIDTH,
|
|
364
|
+
height: Number.isFinite(options.height) ? Math.trunc(options.height) : DEFAULT_RENDER_HEIGHT,
|
|
383
365
|
};
|
|
384
366
|
}
|
|
385
367
|
|
|
@@ -468,13 +450,13 @@ export async function mountGpuProductStudio(options = {}, featureFlags = null) {
|
|
|
468
450
|
throw new Error("Product Studio renderer loader must provide createWavefrontPathTracingComputeRenderer.");
|
|
469
451
|
}
|
|
470
452
|
|
|
471
|
-
const size = resolveRenderSize(
|
|
453
|
+
const size = resolveRenderSize(options);
|
|
472
454
|
const lightingOptions = await resolveWavefrontLightingOptions(options);
|
|
473
455
|
const renderer = await rendererModule.createWavefrontPathTracingComputeRenderer({
|
|
474
456
|
canvas,
|
|
475
457
|
width: size.width,
|
|
476
458
|
height: size.height,
|
|
477
|
-
maxDepth: Number.isFinite(options.maxDepth) ? options.maxDepth :
|
|
459
|
+
maxDepth: Number.isFinite(options.maxDepth) ? options.maxDepth : DEFAULT_RENDER_MAX_DEPTH,
|
|
478
460
|
tileSize: Number.isFinite(options.tileSize) ? options.tileSize : 128,
|
|
479
461
|
samplesPerPixel: Number.isFinite(options.samplesPerPixel) ? options.samplesPerPixel : 8,
|
|
480
462
|
denoise: options.denoise !== false,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/product-studio-runtime.js"],"sourcesContent":["import { loadGltfModel } from \"./gltf-loader.js\";\n\nconst STYLE_ID = \"plasius-product-studio-wavefront-style\";\nconst DEFAULT_PRODUCT_ASSET_URL =\n \"/data/models/eames-lounge-chair-ottoman/Eames_Lounge_Chair_Ottoman.gltf\";\nconst DEFAULT_TARGET_CENTER = Object.freeze([0, 0.74, 0]);\nconst DEFAULT_TARGET_SIZE = 2.25;\n\nfunction clamp(value, min, max) {\n return Math.max(min, Math.min(max, value));\n}\n\nfunction isFiniteVector(value) {\n return (\n Array.isArray(value) &&\n value.length >= 3 &&\n Number.isFinite(value[0]) &&\n Number.isFinite(value[1]) &&\n Number.isFinite(value[2])\n );\n}\n\nfunction createEmptyBounds() {\n return {\n min: [Number.POSITIVE_INFINITY, Number.POSITIVE_INFINITY, Number.POSITIVE_INFINITY],\n max: [Number.NEGATIVE_INFINITY, Number.NEGATIVE_INFINITY, Number.NEGATIVE_INFINITY],\n };\n}\n\nfunction expandBounds(bounds, point) {\n bounds.min[0] = Math.min(bounds.min[0], point[0]);\n bounds.min[1] = Math.min(bounds.min[1], point[1]);\n bounds.min[2] = Math.min(bounds.min[2], point[2]);\n bounds.max[0] = Math.max(bounds.max[0], point[0]);\n bounds.max[1] = Math.max(bounds.max[1], point[1]);\n bounds.max[2] = Math.max(bounds.max[2], point[2]);\n}\n\nfunction getBoundsSize(bounds) {\n return [\n bounds.max[0] - bounds.min[0],\n bounds.max[1] - bounds.min[1],\n bounds.max[2] - bounds.min[2],\n ];\n}\n\nfunction getBoundsCenter(bounds) {\n return [\n (bounds.min[0] + bounds.max[0]) * 0.5,\n (bounds.min[1] + bounds.max[1]) * 0.5,\n (bounds.min[2] + bounds.max[2]) * 0.5,\n ];\n}\n\nfunction getModelBounds(model) {\n if (isFiniteVector(model?.bounds?.min) && isFiniteVector(model?.bounds?.max)) {\n return {\n min: [...model.bounds.min],\n max: [...model.bounds.max],\n };\n }\n\n const bounds = createEmptyBounds();\n for (const primitive of model?.primitives ?? []) {\n for (let index = 0; index < primitive.positions.length; index += 3) {\n expandBounds(bounds, [\n primitive.positions[index],\n primitive.positions[index + 1],\n primitive.positions[index + 2],\n ]);\n }\n }\n return bounds;\n}\n\nfunction transformPoint(point, modelCenter, scale, targetCenter) {\n return [\n (point[0] - modelCenter[0]) * scale + targetCenter[0],\n (point[1] - modelCenter[1]) * scale + targetCenter[1],\n (point[2] - modelCenter[2]) * scale + targetCenter[2],\n ];\n}\n\nfunction readMaterialColor(material) {\n const color = material?.color ?? {};\n return [\n Number.isFinite(color.r) ? color.r : 0.62,\n Number.isFinite(color.g) ? color.g : 0.56,\n Number.isFinite(color.b) ? color.b : 0.48,\n Number.isFinite(color.a) ? color.a : 1,\n ];\n}\n\nfunction readMaterialKind(material) {\n const emissive = material?.emissive ?? {};\n if ((emissive.r ?? 0) + (emissive.g ?? 0) + (emissive.b ?? 0) > 0.001) {\n return \"emissive\";\n }\n if ((material?.metallic ?? 0) >= 0.5) {\n return \"metal\";\n }\n const alpha = readMaterialColor(material)[3];\n if (alpha < 0.9) {\n return \"transparent\";\n }\n return \"diffuse\";\n}\n\nfunction readEmission(material) {\n const emissive = material?.emissive ?? {};\n return [\n Number.isFinite(emissive.r) ? emissive.r : 0,\n Number.isFinite(emissive.g) ? emissive.g : 0,\n Number.isFinite(emissive.b) ? emissive.b : 0,\n 1,\n ];\n}\n\nfunction createQuadMesh({\n id,\n corners,\n color,\n emission = [0, 0, 0, 1],\n materialKind = \"diffuse\",\n roughness = 0.72,\n metallic = 0,\n opacity = color[3] ?? 1,\n}) {\n const [a, b, c] = corners;\n const edge1 = [b[0] - a[0], b[1] - a[1], b[2] - a[2]];\n const edge2 = [c[0] - a[0], c[1] - a[1], c[2] - a[2]];\n const normal = [\n edge1[1] * edge2[2] - edge1[2] * edge2[1],\n edge1[2] * edge2[0] - edge1[0] * edge2[2],\n edge1[0] * edge2[1] - edge1[1] * edge2[0],\n ];\n const length = Math.hypot(normal[0], normal[1], normal[2]) || 1;\n const unitNormal = normal.map((value) => value / length);\n\n return Object.freeze({\n id,\n positions: Object.freeze(corners.flat()),\n indices: Object.freeze([0, 1, 2, 0, 2, 3]),\n normals: Object.freeze([unitNormal, unitNormal, unitNormal, unitNormal].flat()),\n color: Object.freeze([...color]),\n emission: Object.freeze([...emission]),\n materialKind,\n roughness,\n metallic,\n opacity,\n });\n}\n\nfunction createProductStudioEnvironmentMeshes() {\n return [\n createQuadMesh({\n id: 1,\n corners: [\n [-3.2, -0.08, 2.4],\n [3.2, -0.08, 2.4],\n [3.2, -0.08, -3.1],\n [-3.2, -0.08, -3.1],\n ],\n color: [0.48, 0.55, 0.55, 1],\n roughness: 0.82,\n }),\n createQuadMesh({\n id: 2,\n corners: [\n [-3.2, -0.08, -2.45],\n [3.2, -0.08, -2.45],\n [3.2, 2.65, -2.45],\n [-3.2, 2.65, -2.45],\n ],\n color: [0.43, 0.42, 0.38, 1],\n roughness: 0.86,\n }),\n createQuadMesh({\n id: 3,\n corners: [\n [-2.85, -0.08, -2.45],\n [-2.85, 2.55, -2.45],\n [-2.85, 2.55, 2.15],\n [-2.85, -0.08, 2.15],\n ],\n color: [0.36, 0.42, 0.45, 1],\n roughness: 0.8,\n }),\n createQuadMesh({\n id: 4,\n corners: [\n [0.78, 2.55, -0.82],\n [-0.78, 2.55, -0.82],\n [-0.78, 2.55, -1.78],\n [0.78, 2.55, -1.78],\n ],\n color: [1, 0.94, 0.78, 1],\n emission: [8.5, 7.2, 4.8, 1],\n materialKind: \"emissive\",\n roughness: 0,\n }),\n ];\n}\n\nfunction createProductStudioMeshFromPrimitive(primitive, primitiveIndex, transform) {\n if (!Array.isArray(primitive?.positions) || primitive.positions.length < 9) {\n return null;\n }\n\n const positions = [];\n for (let index = 0; index < primitive.positions.length; index += 3) {\n const point = transform([\n primitive.positions[index],\n primitive.positions[index + 1],\n primitive.positions[index + 2],\n ]);\n positions.push(point[0], point[1], point[2]);\n }\n\n const indices =\n Array.isArray(primitive.indices) && primitive.indices.length >= 3\n ? [...primitive.indices]\n : Array.from({ length: positions.length / 3 }, (_, index) => index);\n const material = primitive.material ?? {};\n const color = readMaterialColor(material);\n const uvs = Array.isArray(primitive.uvs) ? [...primitive.uvs] : null;\n\n return Object.freeze({\n id: 1000 + primitiveIndex,\n positions: Object.freeze(positions),\n indices: Object.freeze(indices),\n normals: Array.isArray(primitive.normals) ? Object.freeze([...primitive.normals]) : null,\n uvs: uvs ? Object.freeze(uvs) : null,\n material: Object.freeze({ ...material }),\n color: Object.freeze(color),\n emission: Object.freeze(readEmission(material)),\n materialKind: readMaterialKind(material),\n materialRefId: 1000 + primitiveIndex,\n roughness: Number.isFinite(material.roughness) ? material.roughness : 0.72,\n metallic: Number.isFinite(material.metallic) ? material.metallic : 0,\n opacity: color[3],\n baseColorTexture: material.baseColorTexture ?? null,\n metallicRoughnessTexture: material.metallicRoughnessTexture ?? null,\n normalTexture: material.normalTexture ?? null,\n occlusionTexture: material.occlusionTexture ?? null,\n emissiveTexture: material.emissiveTexture ?? null,\n specular: Number.isFinite(material.specular) ? material.specular : 1,\n specularColor: Array.isArray(material.specularColor)\n ? Object.freeze([...material.specularColor])\n : undefined,\n specularTexture: material.specularTexture ?? null,\n specularColorTexture: material.specularColorTexture ?? null,\n transmission: Number.isFinite(material.transmission) ? material.transmission : 0,\n transmissionTexture: material.transmissionTexture ?? null,\n ior: Number.isFinite(material.ior) ? material.ior : undefined,\n thickness: Number.isFinite(material.thickness) ? material.thickness : undefined,\n thicknessTexture: material.thicknessTexture ?? null,\n attenuationDistance:\n Number.isFinite(material.attenuationDistance) ? material.attenuationDistance : null,\n attenuationColor: Array.isArray(material.attenuationColor)\n ? Object.freeze([...material.attenuationColor])\n : undefined,\n clearcoat: Number.isFinite(material.clearcoat) ? material.clearcoat : undefined,\n clearcoatTexture: material.clearcoatTexture ?? null,\n clearcoatRoughness: Number.isFinite(material.clearcoatRoughness)\n ? material.clearcoatRoughness\n : undefined,\n clearcoatRoughnessTexture: material.clearcoatRoughnessTexture ?? null,\n clearcoatNormalTexture: material.clearcoatNormalTexture ?? null,\n sheenColor: Array.isArray(material.sheenColor)\n ? Object.freeze([...material.sheenColor])\n : undefined,\n sheenColorTexture: material.sheenColorTexture ?? null,\n sheenRoughness: Number.isFinite(material.sheenRoughness) ? material.sheenRoughness : undefined,\n sheenRoughnessTexture: material.sheenRoughnessTexture ?? null,\n iridescence: Number.isFinite(material.iridescence) ? material.iridescence : undefined,\n iridescenceTexture: material.iridescenceTexture ?? null,\n iridescenceIor: Number.isFinite(material.iridescenceIor) ? material.iridescenceIor : undefined,\n iridescenceThicknessMinimum: Number.isFinite(material.iridescenceThicknessMinimum)\n ? material.iridescenceThicknessMinimum\n : undefined,\n iridescenceThicknessMaximum: Number.isFinite(material.iridescenceThicknessMaximum)\n ? material.iridescenceThicknessMaximum\n : undefined,\n iridescenceThicknessTexture: material.iridescenceThicknessTexture ?? null,\n anisotropy: Number.isFinite(material.anisotropy) ? material.anisotropy : undefined,\n anisotropyRotation: Number.isFinite(material.anisotropyRotation)\n ? material.anisotropyRotation\n : undefined,\n anisotropyTexture: material.anisotropyTexture ?? null,\n dispersion: Number.isFinite(material.dispersion) ? material.dispersion : undefined,\n });\n}\n\nexport function createProductStudioMeshes(model, options = {}) {\n const primitives = Array.isArray(model?.primitives) ? model.primitives : [];\n if (primitives.length === 0) {\n throw new Error(\"Product Studio model must contain at least one renderable primitive.\");\n }\n\n const targetCenter = isFiniteVector(options.targetCenter)\n ? [...options.targetCenter]\n : [...DEFAULT_TARGET_CENTER];\n const targetSize = Number.isFinite(options.targetSize)\n ? Math.max(options.targetSize, 0.25)\n : DEFAULT_TARGET_SIZE;\n const modelBounds = getModelBounds(model);\n const modelSize = getBoundsSize(modelBounds);\n const modelCenter = getBoundsCenter(modelBounds);\n const scale = targetSize / Math.max(modelSize[0], modelSize[1], modelSize[2], 0.000001);\n const transform = (point) => transformPoint(point, modelCenter, scale, targetCenter);\n const modelMeshes = primitives\n .map((primitive, index) => createProductStudioMeshFromPrimitive(primitive, index, transform))\n .filter(Boolean);\n\n return Object.freeze([...createProductStudioEnvironmentMeshes(), ...modelMeshes]);\n}\n\nfunction ensureStyles(documentRef) {\n if (documentRef.getElementById?.(STYLE_ID)) {\n return;\n }\n const style = documentRef.createElement(\"style\");\n style.id = STYLE_ID;\n style.textContent = `\n .plasius-product-studio-wavefront {\n position: relative;\n width: 100%;\n min-height: 420px;\n overflow: hidden;\n background: #0f1418;\n display: grid;\n place-items: center;\n }\n\n .plasius-product-studio-wavefront canvas {\n display: block;\n width: 100%;\n height: auto;\n max-height: 100%;\n aspect-ratio: 16 / 9;\n min-height: 420px;\n object-fit: contain;\n }\n `;\n documentRef.head?.appendChild?.(style);\n}\n\nfunction resolveRoot(options) {\n const documentRef = options.document ?? globalThis.document;\n if (options.root) {\n return options.root;\n }\n const root =\n documentRef?.querySelector?.(\"[data-plasius-gpu-product-studio]\") ?? documentRef?.body;\n if (!root) {\n throw new Error(\"Product Studio requires a DOM root.\");\n }\n return root;\n}\n\nfunction resolveRenderSize(root, options) {\n const rect = root.getBoundingClientRect?.() ?? { width: 1280, height: 720 };\n const devicePixelRatio =\n Number.isFinite(options.devicePixelRatio)\n ? options.devicePixelRatio\n : Number.isFinite(globalThis.window?.devicePixelRatio)\n ? globalThis.window.devicePixelRatio\n : 1;\n const cssWidth = Number.isFinite(rect.width) && rect.width > 0 ? rect.width : 1280;\n const cssHeight =\n Number.isFinite(rect.height) && rect.height > 0 ? rect.height : cssWidth * (9 / 16);\n const width = Number.isFinite(options.width)\n ? Math.trunc(options.width)\n : clamp(Math.round(cssWidth * devicePixelRatio), 640, 1920);\n const height = Number.isFinite(options.height)\n ? Math.trunc(options.height)\n : clamp(Math.round(cssHeight * devicePixelRatio), 360, 1080);\n\n return {\n width,\n height,\n };\n}\n\nfunction installSnapshotHook(state) {\n if (typeof globalThis.window === \"undefined\") {\n return () => {};\n }\n const previous = globalThis.window.render_game_to_text;\n globalThis.window.render_game_to_text = () =>\n JSON.stringify({\n surface: \"gpu-product-studio-wavefront\",\n model: state.modelName,\n sourceTriangles: state.sourceTriangleCount,\n meshCount: state.meshCount,\n geometryMode: state.geometryMode,\n requiresTriangleMeshRenderer: state.requiresTriangleMeshRenderer,\n displayQuality: state.displayQuality,\n requiresMeshBvhForDisplayQuality: state.requiresMeshBvhForDisplayQuality,\n renderer: state.rendererStats,\n });\n return () => {\n if (previous === undefined) {\n delete globalThis.window.render_game_to_text;\n } else {\n globalThis.window.render_game_to_text = previous;\n }\n };\n}\n\nfunction countSourceTriangles(model) {\n return (model.primitives ?? []).reduce(\n (total, primitive) => total + Math.floor((primitive.indices?.length ?? 0) / 3),\n 0\n );\n}\n\nasync function resolveWavefrontLightingOptions(options) {\n const fallback = {\n environmentColor: [0.35, 0.43, 0.49, 1],\n ambientColor: [0.02, 0.024, 0.028, 1],\n };\n const lightingLoader =\n typeof options.__lightingLoader === \"function\"\n ? options.__lightingLoader\n : () => import(\"@plasius/gpu-lighting\").catch(() => null);\n const lightingModule = await lightingLoader();\n\n if (\n typeof lightingModule?.createWavefrontEnvironmentLightingOptions !== \"function\"\n ) {\n return fallback;\n }\n\n return lightingModule.createWavefrontEnvironmentLightingOptions({\n preset: options.lightingPreset ?? \"product-studio\",\n intensity: options.lightingIntensity,\n });\n}\n\nexport async function mountGpuProductStudio(options = {}, featureFlags = null) {\n const root = resolveRoot(options);\n const documentRef = options.document ?? root.ownerDocument ?? globalThis.document;\n ensureStyles(documentRef);\n const previousMarkup = root.innerHTML;\n root.innerHTML = \"\";\n root.classList?.add?.(\"plasius-product-studio-wavefront\");\n\n const canvas = documentRef.createElement(\"canvas\");\n canvas.dataset.plasiusGpuProductStudio = \"wavefront\";\n root.appendChild(canvas);\n\n const modelLoader =\n typeof options.__modelLoader === \"function\" ? options.__modelLoader : loadGltfModel;\n const rendererLoader =\n typeof options.__rendererLoader === \"function\"\n ? options.__rendererLoader\n : () => import(\"@plasius/gpu-renderer\");\n const assetUrl = options.productAssetUrl ?? options.assetUrl ?? DEFAULT_PRODUCT_ASSET_URL;\n const model = await modelLoader(assetUrl);\n const meshes = createProductStudioMeshes(model, {\n targetCenter: options.targetCenter,\n targetSize: options.targetSize,\n });\n const rendererModule = await rendererLoader();\n if (typeof rendererModule.createWavefrontPathTracingComputeRenderer !== \"function\") {\n throw new Error(\"Product Studio renderer loader must provide createWavefrontPathTracingComputeRenderer.\");\n }\n\n const size = resolveRenderSize(root, options);\n const lightingOptions = await resolveWavefrontLightingOptions(options);\n const renderer = await rendererModule.createWavefrontPathTracingComputeRenderer({\n canvas,\n width: size.width,\n height: size.height,\n maxDepth: Number.isFinite(options.maxDepth) ? options.maxDepth : 6,\n tileSize: Number.isFinite(options.tileSize) ? options.tileSize : 128,\n samplesPerPixel: Number.isFinite(options.samplesPerPixel) ? options.samplesPerPixel : 8,\n denoise: options.denoise !== false,\n displayQuality: true,\n meshes,\n camera: {\n position: [0, 1.12, 5.05],\n target: [0, 0.72, 0],\n up: [0, 1, 0],\n fovYDegrees: 43,\n },\n ...lightingOptions,\n });\n const rendererStats = renderer.renderOnce();\n const state = Object.freeze({\n featureFlags,\n modelName: model.name,\n sourceTriangleCount: countSourceTriangles(model),\n meshCount: meshes.length,\n geometryMode: \"mesh-bvh-display-quality\",\n requiresTriangleMeshRenderer: true,\n displayQuality: true,\n requiresMeshBvhForDisplayQuality: true,\n rendererStats,\n });\n const restoreSnapshotHook = installSnapshotHook(state);\n\n return Object.freeze({\n state,\n model,\n productModel: model,\n canvas,\n renderer,\n meshes,\n destroy() {\n restoreSnapshotHook();\n renderer.destroy();\n root.classList?.remove?.(\"plasius-product-studio-wavefront\");\n root.innerHTML = previousMarkup;\n },\n });\n}\n"],"mappings":";;;;;AAEA,IAAM,WAAW;AACjB,IAAM,4BACJ;AACF,IAAM,wBAAwB,OAAO,OA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