Spaces:
Running
Running
Update viewer.js
Browse files
viewer.js
CHANGED
|
@@ -242,9 +242,9 @@ export async function initializeViewer(config, instanceId) {
|
|
| 242 |
// Simple material for the banner
|
| 243 |
const mat = new pc.StandardMaterial();
|
| 244 |
mat.diffuse = new pc.Color(1, 1, 1);
|
| 245 |
-
|
| 246 |
mat.emissive = new pc.Color(1, 1, 1);
|
| 247 |
-
|
| 248 |
mat.emissiveIntensity = 1;
|
| 249 |
mat.useLighting = false;
|
| 250 |
mat.update();
|
|
|
|
| 242 |
// Simple material for the banner
|
| 243 |
const mat = new pc.StandardMaterial();
|
| 244 |
mat.diffuse = new pc.Color(1, 1, 1);
|
| 245 |
+
mat.diffuseMap = bgTex;
|
| 246 |
mat.emissive = new pc.Color(1, 1, 1);
|
| 247 |
+
mat.emissiveMap = bgTex;
|
| 248 |
mat.emissiveIntensity = 1;
|
| 249 |
mat.useLighting = false;
|
| 250 |
mat.update();
|