Spaces:
Running
Running
Update viewer.js
Browse files
viewer.js
CHANGED
|
@@ -232,13 +232,10 @@ export async function initializeViewer(config, instanceId) {
|
|
| 232 |
app.root.addChild(presentoirEntity);
|
| 233 |
|
| 234 |
if(!espace_expo_bool){
|
| 235 |
-
//const grilleTex = await loadImageAsTexture('https://huggingface.co/datasets/MikaFil/3D_models/resolve/main/EARCARE/textures/emit_map_1k.png', app);
|
| 236 |
-
const grilleTex = new window.Image();
|
| 237 |
-
grilleTex.src = "https://huggingface.co/datasets/MikaFil/viewer_gs/resolve/main/ressources/textures/grille_cadrillee_4k.jpg";
|
| 238 |
let matSol = new pc.StandardMaterial();
|
| 239 |
matSol.blendType = pc.BLEND_NONE;
|
| 240 |
matSol.emissive = new pc.Color(color_bg);
|
| 241 |
-
matSol.emissiveIntensity =
|
| 242 |
matSol.update();
|
| 243 |
|
| 244 |
|
|
|
|
| 232 |
app.root.addChild(presentoirEntity);
|
| 233 |
|
| 234 |
if(!espace_expo_bool){
|
|
|
|
|
|
|
|
|
|
| 235 |
let matSol = new pc.StandardMaterial();
|
| 236 |
matSol.blendType = pc.BLEND_NONE;
|
| 237 |
matSol.emissive = new pc.Color(color_bg);
|
| 238 |
+
matSol.emissiveIntensity = 1;
|
| 239 |
matSol.update();
|
| 240 |
|
| 241 |
|