MikaFil commited on
Commit
1be684b
·
verified ·
1 Parent(s): 0f02769

Update viewer.js

Browse files
Files changed (1) hide show
  1. viewer.js +4 -1
viewer.js CHANGED
@@ -269,13 +269,16 @@ export async function initializeViewer(config, instanceId) {
269
  // Ici tu as ton matériau
270
  const mat = mi.material;
271
 
272
- mat.opacity = 0.7;
273
  /*mat.blendType = pc.BLEND_NORMAL;
274
  mat.depthTest = false;
275
  mat.depthWrite = false;
276
  mat.useMetalness = true;
277
  mat.useDynamicRefraction = true;
278
  mat.thickness = 4;*/
 
 
 
279
  mat.update();
280
  }
281
  }
 
269
  // Ici tu as ton matériau
270
  const mat = mi.material;
271
 
272
+ mat.opacity = 0.6;
273
  /*mat.blendType = pc.BLEND_NORMAL;
274
  mat.depthTest = false;
275
  mat.depthWrite = false;
276
  mat.useMetalness = true;
277
  mat.useDynamicRefraction = true;
278
  mat.thickness = 4;*/
279
+ mat.specular = new pc.Color(0.01, 0.01, 0.01);
280
+ mat.gloss = 0;
281
+ mat.metalness = 0;
282
  mat.update();
283
  }
284
  }