Spaces:
Running
Running
Update viewer.js
Browse files
viewer.js
CHANGED
|
@@ -126,8 +126,8 @@ export async function initializeViewer(config, instanceId) {
|
|
| 126 |
app = new pc.Application(canvas, opts);
|
| 127 |
app.setCanvasFillMode(pc.FILLMODE_NONE);
|
| 128 |
app.setCanvasResolution(pc.RESOLUTION_AUTO);
|
| 129 |
-
app.scene.exposure = 0.5;
|
| 130 |
-
app.scene.toneMapping = pc.TONEMAP_ACES;
|
| 131 |
|
| 132 |
// Attach ResizeObserver to keep canvas in sync with container size
|
| 133 |
resizeObserver = new ResizeObserver(entries => {
|
|
@@ -219,7 +219,7 @@ export async function initializeViewer(config, instanceId) {
|
|
| 219 |
clearColor: config.canvas_background
|
| 220 |
? parseInt(config.canvas_background.substr(1, 2), 16) / 255
|
| 221 |
: 0,
|
| 222 |
-
toneMapping: pc.TONEMAP_ACES
|
| 223 |
});
|
| 224 |
cameraEntity.setPosition(chosenCameraX, chosenCameraY, chosenCameraZ);
|
| 225 |
cameraEntity.lookAt(modelEntity.getPosition());
|
|
|
|
| 126 |
app = new pc.Application(canvas, opts);
|
| 127 |
app.setCanvasFillMode(pc.FILLMODE_NONE);
|
| 128 |
app.setCanvasResolution(pc.RESOLUTION_AUTO);
|
| 129 |
+
//app.scene.exposure = 0.5;
|
| 130 |
+
//app.scene.toneMapping = pc.TONEMAP_ACES;
|
| 131 |
|
| 132 |
// Attach ResizeObserver to keep canvas in sync with container size
|
| 133 |
resizeObserver = new ResizeObserver(entries => {
|
|
|
|
| 219 |
clearColor: config.canvas_background
|
| 220 |
? parseInt(config.canvas_background.substr(1, 2), 16) / 255
|
| 221 |
: 0,
|
| 222 |
+
//toneMapping: pc.TONEMAP_ACES
|
| 223 |
});
|
| 224 |
cameraEntity.setPosition(chosenCameraX, chosenCameraY, chosenCameraZ);
|
| 225 |
cameraEntity.lookAt(modelEntity.getPosition());
|