Spaces:
Running
Running
Update viewer.js
Browse files
viewer.js
CHANGED
|
@@ -219,12 +219,15 @@ export async function initializeViewer(config, instanceId) {
|
|
| 219 |
|
| 220 |
if(config.glbUrl == undefined){
|
| 221 |
let matSol = new pc.StandardMaterial();
|
| 222 |
-
matSol.blendType = pc.
|
| 223 |
matSol.emissive = new pc.Color(color_bg);
|
| 224 |
matSol.emissiveIntensity = 1;
|
| 225 |
matSol.update();
|
| 226 |
|
| 227 |
-
|
|
|
|
|
|
|
|
|
|
| 228 |
if (node.render && node.render.meshInstances) {
|
| 229 |
for (let mi of node.render.meshInstances) {
|
| 230 |
mi.material = matSol;
|
|
@@ -238,7 +241,7 @@ export async function initializeViewer(config, instanceId) {
|
|
| 238 |
mi.material = matSol;
|
| 239 |
}
|
| 240 |
}
|
| 241 |
-
});
|
| 242 |
|
| 243 |
console.log("matSol : ok");
|
| 244 |
}
|
|
|
|
| 219 |
|
| 220 |
if(config.glbUrl == undefined){
|
| 221 |
let matSol = new pc.StandardMaterial();
|
| 222 |
+
matSol.blendType = pc.BLEND_NONE;
|
| 223 |
matSol.emissive = new pc.Color(color_bg);
|
| 224 |
matSol.emissiveIntensity = 1;
|
| 225 |
matSol.update();
|
| 226 |
|
| 227 |
+
presentoirEntity.material = matSol;
|
| 228 |
+
glbEntity.material = matSol;
|
| 229 |
+
|
| 230 |
+
/*traverse(presentoirEntity, node => {
|
| 231 |
if (node.render && node.render.meshInstances) {
|
| 232 |
for (let mi of node.render.meshInstances) {
|
| 233 |
mi.material = matSol;
|
|
|
|
| 241 |
mi.material = matSol;
|
| 242 |
}
|
| 243 |
}
|
| 244 |
+
});*/
|
| 245 |
|
| 246 |
console.log("matSol : ok");
|
| 247 |
}
|