Spaces:
Running
Running
Update viewer.js
Browse files
viewer.js
CHANGED
|
@@ -238,14 +238,14 @@ export async function initializeViewer(config, instanceId) {
|
|
| 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;
|
| 244 |
matSol1.update();
|
| 245 |
|
| 246 |
const bgPlane = new pc.Entity("Plane");
|
| 247 |
bgPlane.addComponent("model", { type: "plane" });
|
| 248 |
-
bgPlane.setLocalPosition(0, 0.1, 0);
|
| 249 |
bgPlane.setLocalScale(10, 10, 10);
|
| 250 |
bgPlane.model.material = matSol1;
|
| 251 |
app.root.addChild(bgPlane);
|
|
|
|
| 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;
|
| 244 |
matSol1.update();
|
| 245 |
|
| 246 |
const bgPlane = new pc.Entity("Plane");
|
| 247 |
bgPlane.addComponent("model", { type: "plane" });
|
| 248 |
+
bgPlane.setLocalPosition(0, -0.1, 0);
|
| 249 |
bgPlane.setLocalScale(10, 10, 10);
|
| 250 |
bgPlane.model.material = matSol1;
|
| 251 |
app.root.addChild(bgPlane);
|