Spaces:
Running
Running
Update viewer.js
Browse files
viewer.js
CHANGED
|
@@ -227,12 +227,13 @@ export async function initializeViewer(config, instanceId) {
|
|
| 227 |
|
| 228 |
if(!espace_expo_bool){
|
| 229 |
|
| 230 |
-
const grilleTex = loadImageAsTexture("https://huggingface.co/datasets/MikaFil/viewer_gs/resolve/main/ressources/textures/
|
| 231 |
let matSol = new pc.StandardMaterial();
|
| 232 |
matSol.blendType = pc.BLEND_NONE;
|
| 233 |
matSol.emissive = new pc.Color([0.1,0.5,1]);
|
| 234 |
-
|
| 235 |
-
matSol.emissiveIntensity =
|
|
|
|
| 236 |
matSol.update();
|
| 237 |
|
| 238 |
/*const bgPlane = new pc.Entity("Plane");
|
|
|
|
| 227 |
|
| 228 |
if(!espace_expo_bool){
|
| 229 |
|
| 230 |
+
const grilleTex = loadImageAsTexture("https://huggingface.co/datasets/MikaFil/viewer_gs/resolve/main/ressources/textures/test_tex.jpg", app);
|
| 231 |
let matSol = new pc.StandardMaterial();
|
| 232 |
matSol.blendType = pc.BLEND_NONE;
|
| 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 |
/*const bgPlane = new pc.Entity("Plane");
|