Spaces:
Running
Running
Update viewer.js
Browse files
viewer.js
CHANGED
|
@@ -204,6 +204,10 @@ export async function initializeViewer(config, instanceId) {
|
|
| 204 |
presentoir: new pc.Asset('presentoir', 'container', {url: presentoirUrl}),
|
| 205 |
};
|
| 206 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 207 |
for (const key in assets) app.assets.add(assets[key]);
|
| 208 |
|
| 209 |
const loader = new pc.AssetListLoader(Object.values(assets), app.assets);
|
|
@@ -227,7 +231,6 @@ export async function initializeViewer(config, instanceId) {
|
|
| 227 |
|
| 228 |
if(!espace_expo_bool){
|
| 229 |
|
| 230 |
-
const bgTex = 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(color_bg);
|
|
|
|
| 204 |
presentoir: new pc.Asset('presentoir', 'container', {url: presentoirUrl}),
|
| 205 |
};
|
| 206 |
|
| 207 |
+
|
| 208 |
+
// /!\ ======================================== /!\
|
| 209 |
+
const bgTex = await loadImageAsTexture('https://huggingface.co/datasets/MikaFil/3D_models/resolve/main/EARCARE/images/banniere_earcare.png', app);
|
| 210 |
+
// /!\ ======================================== /!\
|
| 211 |
for (const key in assets) app.assets.add(assets[key]);
|
| 212 |
|
| 213 |
const loader = new pc.AssetListLoader(Object.values(assets), app.assets);
|
|
|
|
| 231 |
|
| 232 |
if(!espace_expo_bool){
|
| 233 |
|
|
|
|
| 234 |
let matSol = new pc.StandardMaterial();
|
| 235 |
matSol.blendType = pc.BLEND_NONE;
|
| 236 |
matSol.emissive = new pc.Color(color_bg);
|