Spaces:
Running
Running
Update viewer.js
Browse files
viewer.js
CHANGED
|
@@ -209,7 +209,7 @@ export async function initializeViewer(config, instanceId) {
|
|
| 209 |
app.root.addChild(presentoirEntity);
|
| 210 |
|
| 211 |
cameraEntity = new pc.Entity('camera');
|
| 212 |
-
|
| 213 |
cameraEntity.setPosition(chosenCameraX, chosenCameraY, chosenCameraZ);
|
| 214 |
cameraEntity.lookAt(modelEntity.getPosition());
|
| 215 |
cameraEntity.addComponent('script');
|
|
|
|
| 209 |
app.root.addChild(presentoirEntity);
|
| 210 |
|
| 211 |
cameraEntity = new pc.Entity('camera');
|
| 212 |
+
cameraEntity.addComponent('camera', { clearColor: new pc.Color(1, 1, 1, 1) });
|
| 213 |
cameraEntity.setPosition(chosenCameraX, chosenCameraY, chosenCameraZ);
|
| 214 |
cameraEntity.lookAt(modelEntity.getPosition());
|
| 215 |
cameraEntity.addComponent('script');
|