Spaces:
Running
Running
Update viewer.js
Browse files
viewer.js
CHANGED
|
@@ -275,8 +275,7 @@ export async function initializeViewer(config, instanceId) {
|
|
| 275 |
cameraEntity = new pc.Entity('camera');
|
| 276 |
cameraEntity.addComponent('camera',
|
| 277 |
{ clearColor: new pc.Color(color_bg)},
|
| 278 |
-
|
| 279 |
-
farClip: 100
|
| 280 |
);
|
| 281 |
cameraEntity.setPosition(chosenCameraX, chosenCameraY, chosenCameraZ);
|
| 282 |
cameraEntity.lookAt(modelEntity.getPosition());
|
|
|
|
| 275 |
cameraEntity = new pc.Entity('camera');
|
| 276 |
cameraEntity.addComponent('camera',
|
| 277 |
{ clearColor: new pc.Color(color_bg)},
|
| 278 |
+
|
|
|
|
| 279 |
);
|
| 280 |
cameraEntity.setPosition(chosenCameraX, chosenCameraY, chosenCameraZ);
|
| 281 |
cameraEntity.lookAt(modelEntity.getPosition());
|