MikaFil commited on
Commit
4416a65
·
verified ·
1 Parent(s): ae792f6

Update viewer.js

Browse files
Files changed (1) hide show
  1. viewer.js +3 -7
viewer.js CHANGED
@@ -240,14 +240,10 @@ export async function initializeViewer(config, instanceId) {
240
  const bgPlane = new pc.Entity("Plane");
241
  bgPlane.addComponent("model", { type: "plane" });
242
  bgPlane.setLocalPosition(0, 0.1, 0);
243
- const mat = new pc.StandardMaterial();
244
- mat.diffuse = new pc.Color(1, 1, 1);
245
- mat.emissive = new pc.Color(1, 1, 1);
246
- mat.emissiveMap = grilleTex;
247
- mat.emissiveIntensity = 1;
248
- mat.useLighting = false;
249
  mat.update();
250
- bgPlane.model.material = mat;
251
  app.root.addChild(bgPlane);
252
 
253
  traverse(presentoirEntity, node => {
 
240
  const bgPlane = new pc.Entity("Plane");
241
  bgPlane.addComponent("model", { type: "plane" });
242
  bgPlane.setLocalPosition(0, 0.1, 0);
243
+ bgPlane.setLocalScale(1, 1, 1);
244
+
 
 
 
 
245
  mat.update();
246
+ bgPlane.model.material = matSol;
247
  app.root.addChild(bgPlane);
248
 
249
  traverse(presentoirEntity, node => {