Spaces:
Running
Running
Update viewer.js
Browse files
viewer.js
CHANGED
|
@@ -230,9 +230,9 @@ export async function initializeViewer(config, instanceId) {
|
|
| 230 |
const grilleTex = loadImageAsTexture("https://huggingface.co/datasets/MikaFil/viewer_gs/resolve/main/ressources/textures/grille_cadrillee_4k.jpg", app);
|
| 231 |
let matSol = new pc.StandardMaterial();
|
| 232 |
matSol.blendType = pc.BLEND_NONE;
|
| 233 |
-
|
| 234 |
-
matSol.emissive = new pc.Color([0.2,0.4,1]);
|
| 235 |
-
matSol.emissiveIntensity =
|
| 236 |
matSol.update();
|
| 237 |
|
| 238 |
|
|
|
|
| 230 |
const grilleTex = loadImageAsTexture("https://huggingface.co/datasets/MikaFil/viewer_gs/resolve/main/ressources/textures/grille_cadrillee_4k.jpg", app);
|
| 231 |
let matSol = new pc.StandardMaterial();
|
| 232 |
matSol.blendType = pc.BLEND_NONE;
|
| 233 |
+
matSol.emissive = new pc.Color(color_bg);
|
| 234 |
+
//matSol.emissive = new pc.Color([0.2,0.4,1]);
|
| 235 |
+
matSol.emissiveIntensity = 1;
|
| 236 |
matSol.update();
|
| 237 |
|
| 238 |
|