Spaces:
Running
Running
Update viewer.js
Browse files
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 |
-
|
| 244 |
-
|
| 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 =
|
| 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 => {
|