Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
slimbuck committed Dec 6, 2024
1 parent deea879 commit f17ad5b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/templates/viewer-html-template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ const template = /* html */ `
this.entity.camera.horizontalFov = true;
this.entity.camera.farClip = bbox.halfExtents.length() * 20;
this.entity.camera.nearClip = this.entity.camera.farClip * 0.001;
// set NEUTRAL tonemapping until https://github.com/playcanvas/engine/pull/7179 is deployed
this.entity.camera.toneMapping = 5;
if (bbox.halfExtents.length() > 100 || resetPosition || resetTarget) {
this.resetCamera(bbox);
Expand Down

0 comments on commit f17ad5b

Please sign in to comment.