MikaFil commited on
Commit
0f41910
·
verified ·
1 Parent(s): a1d5ca0

Update viewer.js

Browse files
Files changed (1) hide show
  1. viewer.js +1 -4
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 = grilleTex;
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