MikaFil commited on
Commit
5999a01
·
verified ·
1 Parent(s): 101ccc1

Update viewer.js

Browse files
Files changed (1) hide show
  1. viewer.js +3 -2
viewer.js CHANGED
@@ -227,7 +227,7 @@ export async function initializeViewer(config, instanceId) {
227
 
228
  if(!espace_expo_bool){
229
 
230
- const grilleTex = loadImageAsTexture('https://huggingface.co/datasets/MikaFil/3D_models/resolve/main/EARCARE/textures/emit_map_1k.png', app);
231
  let matSol = new pc.StandardMaterial();
232
  matSol.blendType = pc.BLEND_NONE;
233
  matSol.emissive = new pc.Color([0.1,0.5,1]);
@@ -237,7 +237,8 @@ export async function initializeViewer(config, instanceId) {
237
 
238
  let matSol1 = new pc.StandardMaterial();
239
  matSol1.blendType = pc.BLEND_NONE;
240
- matSol1.emissive = new pc.Color([0.4,0.7,1]);
 
241
  //matSol1.emissiveMap = grilleTex;
242
  matSol1.emissiveIntensity = 1;
243
  matSol1.useLighting = false;
 
227
 
228
  if(!espace_expo_bool){
229
 
230
+ const grilleTex = loadImageAsTexture('https://huggingface.co/datasets/MikaFil/3D_models/resolve/main/EARCARE/images/banniere_earcare.png', app);
231
  let matSol = new pc.StandardMaterial();
232
  matSol.blendType = pc.BLEND_NONE;
233
  matSol.emissive = new pc.Color([0.1,0.5,1]);
 
237
 
238
  let matSol1 = new pc.StandardMaterial();
239
  matSol1.blendType = pc.BLEND_NONE;
240
+ matSol1.diffuse = new pc.Color([1,1,1]);
241
+ matSol1.diffuseMap = grilleTex;
242
  //matSol1.emissiveMap = grilleTex;
243
  matSol1.emissiveIntensity = 1;
244
  matSol1.useLighting = false;