Spaces:
Running
Running
Update viewer.js
Browse files
viewer.js
CHANGED
|
@@ -233,17 +233,18 @@ export async function initializeViewer(config, instanceId) {
|
|
| 233 |
matSol.emissive = new pc.Color([0.1,0.5,1]);
|
| 234 |
matSol.emissiveMap = grilleTex;
|
| 235 |
matSol.emissiveIntensity = 1;
|
|
|
|
| 236 |
matSol.useLighting = false;
|
| 237 |
matSol.update();
|
| 238 |
|
| 239 |
-
|
| 240 |
bgPlane.addComponent("model", { type: "plane" });
|
| 241 |
bgPlane.setLocalPosition(0, 0.1, 0);
|
| 242 |
const mat = new pc.StandardMaterial();
|
| 243 |
mat.diffuse = new pc.Color(1, 1, 1);
|
| 244 |
mat.emissive = new pc.Color(1, 1, 1);
|
| 245 |
-
mat.emissiveMap =
|
| 246 |
-
mat.emissiveIntensity =
|
| 247 |
mat.useLighting = false;
|
| 248 |
mat.update();
|
| 249 |
bgPlane.model.material = mat;
|
|
|
|
| 233 |
matSol.emissive = new pc.Color([0.1,0.5,1]);
|
| 234 |
matSol.emissiveMap = grilleTex;
|
| 235 |
matSol.emissiveIntensity = 1;
|
| 236 |
+
matSol.opacity = 0;
|
| 237 |
matSol.useLighting = false;
|
| 238 |
matSol.update();
|
| 239 |
|
| 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;
|