MikaFil commited on
Commit
6ad0b66
·
verified ·
1 Parent(s): 37065c2

Update viewer.js

Browse files
Files changed (1) hide show
  1. viewer.js +2 -2
viewer.js CHANGED
@@ -242,9 +242,9 @@ export async function initializeViewer(config, instanceId) {
242
  // Simple material for the banner
243
  const mat = new pc.StandardMaterial();
244
  mat.diffuse = new pc.Color(1, 1, 1);
245
- //mat.diffuseMap = bgTex;
246
  mat.emissive = new pc.Color(1, 1, 1);
247
- //mat.emissiveMap = bgTex;
248
  mat.emissiveIntensity = 1;
249
  mat.useLighting = false;
250
  mat.update();
 
242
  // Simple material for the banner
243
  const mat = new pc.StandardMaterial();
244
  mat.diffuse = new pc.Color(1, 1, 1);
245
+ mat.diffuseMap = bgTex;
246
  mat.emissive = new pc.Color(1, 1, 1);
247
+ mat.emissiveMap = bgTex;
248
  mat.emissiveIntensity = 1;
249
  mat.useLighting = false;
250
  mat.update();