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('https://huggingface.co/datasets/MikaFil/3D_models/resolve/main/EARCARE/
|
| 231 |
let matSol = new pc.StandardMaterial();
|
| 232 |
matSol.blendType = pc.BLEND_NONE;
|
| 233 |
matSol.emissive = new pc.Color([0.1,0.5,1]);
|
|
@@ -237,7 +237,8 @@ export async function initializeViewer(config, instanceId) {
|
|
| 237 |
|
| 238 |
let matSol1 = new pc.StandardMaterial();
|
| 239 |
matSol1.blendType = pc.BLEND_NONE;
|
| 240 |
-
matSol1.
|
|
|
|
| 241 |
//matSol1.emissiveMap = grilleTex;
|
| 242 |
matSol1.emissiveIntensity = 1;
|
| 243 |
matSol1.useLighting = false;
|
|
|
|
| 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]);
|
|
|
|
| 237 |
|
| 238 |
let matSol1 = new pc.StandardMaterial();
|
| 239 |
matSol1.blendType = pc.BLEND_NONE;
|
| 240 |
+
matSol1.diffuse = new pc.Color([1,1,1]);
|
| 241 |
+
matSol1.diffuseMap = grilleTex;
|
| 242 |
//matSol1.emissiveMap = grilleTex;
|
| 243 |
matSol1.emissiveIntensity = 1;
|
| 244 |
matSol1.useLighting = false;
|