Spaces:
Running
Running
Update viewer.js
Browse files
viewer.js
CHANGED
|
@@ -227,7 +227,7 @@ export async function initializeViewer(config, instanceId) {
|
|
| 227 |
|
| 228 |
if(!espace_expo_bool){
|
| 229 |
|
| 230 |
-
const grilleTex = loadImageAsTexture(
|
| 231 |
let matSol = new pc.StandardMaterial();
|
| 232 |
matSol.blendType = pc.BLEND_NONE;
|
| 233 |
matSol.emissive = new pc.Color([0.1,0.5,1]);
|
|
@@ -245,7 +245,7 @@ export async function initializeViewer(config, instanceId) {
|
|
| 245 |
|
| 246 |
const bgPlane = new pc.Entity("Plane");
|
| 247 |
bgPlane.addComponent("model", { type: "plane" });
|
| 248 |
-
bgPlane.setLocalPosition(0, 0, 0);
|
| 249 |
bgPlane.setLocalScale(10, 10, 10);
|
| 250 |
bgPlane.model.material = matSol1;
|
| 251 |
app.root.addChild(bgPlane);
|
|
|
|
| 227 |
|
| 228 |
if(!espace_expo_bool){
|
| 229 |
|
| 230 |
+
const grilleTex = loadImageAsTexture('https://huggingface.co/datasets/MikaFil/3D_models/resolve/main/EARCARE/images/banniere_earcare.png', app);
|
| 231 |
let matSol = new pc.StandardMaterial();
|
| 232 |
matSol.blendType = pc.BLEND_NONE;
|
| 233 |
matSol.emissive = new pc.Color([0.1,0.5,1]);
|
|
|
|
| 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);
|