Spaces:
Running
Running
Update viewer.js
Browse files
viewer.js
CHANGED
|
@@ -27,12 +27,6 @@ async function loadImageAsTexture(url, app) {
|
|
| 27 |
const img = new OriginalImage(...args);
|
| 28 |
img.crossOrigin = "anonymous";
|
| 29 |
// Optionally log image loading for debugging
|
| 30 |
-
/*img.onload = function() {
|
| 31 |
-
console.log("[VIEWER DEBUG] Image loaded:", img.src, "crossOrigin:", img.crossOrigin);
|
| 32 |
-
};
|
| 33 |
-
img.onerror = function(e) {
|
| 34 |
-
console.error("[VIEWER DEBUG] Image load error:", img.src, e);
|
| 35 |
-
};*/
|
| 36 |
return img;
|
| 37 |
};
|
| 38 |
})();
|
|
@@ -237,7 +231,7 @@ export async function initializeViewer(config, instanceId) {
|
|
| 237 |
let matSol = new pc.StandardMaterial();
|
| 238 |
matSol.blendType = pc.BLEND_NONE;
|
| 239 |
matSol.emissive = new pc.Color(color_bg);
|
| 240 |
-
matSol.emissiveIntensity =
|
| 241 |
matSol.update();
|
| 242 |
|
| 243 |
|
|
|
|
| 27 |
const img = new OriginalImage(...args);
|
| 28 |
img.crossOrigin = "anonymous";
|
| 29 |
// Optionally log image loading for debugging
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
return img;
|
| 31 |
};
|
| 32 |
})();
|
|
|
|
| 231 |
let matSol = new pc.StandardMaterial();
|
| 232 |
matSol.blendType = pc.BLEND_NONE;
|
| 233 |
matSol.emissive = new pc.Color(color_bg);
|
| 234 |
+
matSol.emissiveIntensity = 1;
|
| 235 |
matSol.update();
|
| 236 |
|
| 237 |
|