Spaces:
Running
Running
Update viewer.js
Browse files
viewer.js
CHANGED
|
@@ -219,10 +219,11 @@ export async function initializeViewer(config, instanceId) {
|
|
| 219 |
app.root.addChild(presentoirEntity);
|
| 220 |
|
| 221 |
if(!espace_expo_bool){
|
|
|
|
| 222 |
let matSol = new pc.StandardMaterial();
|
| 223 |
matSol.blendType = pc.BLEND_NONE;
|
| 224 |
matSol.emissive = new pc.Color(color_bg);
|
| 225 |
-
matSol.emissiveIntensity =
|
| 226 |
matSol.update();
|
| 227 |
|
| 228 |
|
|
@@ -241,8 +242,6 @@ export async function initializeViewer(config, instanceId) {
|
|
| 241 |
}
|
| 242 |
}
|
| 243 |
});
|
| 244 |
-
|
| 245 |
-
console.log("matSol : ok");
|
| 246 |
}
|
| 247 |
|
| 248 |
cameraEntity = new pc.Entity('camera');
|
|
|
|
| 219 |
app.root.addChild(presentoirEntity);
|
| 220 |
|
| 221 |
if(!espace_expo_bool){
|
| 222 |
+
const grilleTex = await loadImageAsTexture('https://huggingface.co/datasets/MikaFil/viewer_gs/resolve/main/ressources/textures/grille_cadrillee_4k.jpg', app);
|
| 223 |
let matSol = new pc.StandardMaterial();
|
| 224 |
matSol.blendType = pc.BLEND_NONE;
|
| 225 |
matSol.emissive = new pc.Color(color_bg);
|
| 226 |
+
matSol.emissiveIntensity = grilleTex;
|
| 227 |
matSol.update();
|
| 228 |
|
| 229 |
|
|
|
|
| 242 |
}
|
| 243 |
}
|
| 244 |
});
|
|
|
|
|
|
|
| 245 |
}
|
| 246 |
|
| 247 |
cameraEntity = new pc.Entity('camera');
|