Spaces:
Running
Running
Update viewer.js
Browse files
viewer.js
CHANGED
|
@@ -204,7 +204,7 @@ export async function initializeViewer(config, instanceId) {
|
|
| 204 |
|
| 205 |
const presentoirEntity =assets.presentoir.resource.instantiateRenderEntity();
|
| 206 |
presentoirEntity.setLocalScale(presentoirScaleX, presentoirScaleY, presentoirScaleZ);
|
| 207 |
-
app.root.addChild(
|
| 208 |
|
| 209 |
cameraEntity = new pc.Entity('camera');
|
| 210 |
cameraEntity.addComponent('camera', { clearColor: new pc.Color(1, 1, 1, 1) });
|
|
|
|
| 204 |
|
| 205 |
const presentoirEntity =assets.presentoir.resource.instantiateRenderEntity();
|
| 206 |
presentoirEntity.setLocalScale(presentoirScaleX, presentoirScaleY, presentoirScaleZ);
|
| 207 |
+
app.root.addChild(presentoirEntity);
|
| 208 |
|
| 209 |
cameraEntity = new pc.Entity('camera');
|
| 210 |
cameraEntity.addComponent('camera', { clearColor: new pc.Color(1, 1, 1, 1) });
|