MikaFil commited on
Commit
9eb71e3
·
verified ·
1 Parent(s): aa13ea7

Update viewer.js

Browse files
Files changed (1) hide show
  1. viewer.js +4 -3
viewer.js CHANGED
@@ -227,12 +227,13 @@ export async function initializeViewer(config, instanceId) {
227
 
228
  if(!espace_expo_bool){
229
 
230
- const grilleTex = loadImageAsTexture("https://huggingface.co/datasets/MikaFil/viewer_gs/resolve/main/ressources/textures/grille_cadrillee_4k.jpg", app);
231
  let matSol = new pc.StandardMaterial();
232
  matSol.blendType = pc.BLEND_NONE;
233
  matSol.emissive = new pc.Color([0.1,0.5,1]);
234
- //matSol.emissiveMap = grilleTex;
235
- matSol.emissiveIntensity = 0.1;
 
236
  matSol.update();
237
 
238
  /*const bgPlane = new pc.Entity("Plane");
 
227
 
228
  if(!espace_expo_bool){
229
 
230
+ const grilleTex = loadImageAsTexture("https://huggingface.co/datasets/MikaFil/viewer_gs/resolve/main/ressources/textures/test_tex.jpg", app);
231
  let matSol = new pc.StandardMaterial();
232
  matSol.blendType = pc.BLEND_NONE;
233
  matSol.emissive = new pc.Color([0.1,0.5,1]);
234
+ matSol.emissiveMap = grilleTex;
235
+ matSol.emissiveIntensity = 1;
236
+ matSol.useLighting = false;
237
  matSol.update();
238
 
239
  /*const bgPlane = new pc.Entity("Plane");