Skip to content

Commit

Permalink
fix(cameraController): Adjust camera settings for better performance
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangechen committed Aug 10, 2024
1 parent a560e76 commit f83df92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/chili-three/src/cameraController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ export class CameraController implements ICameraController {

private newCamera() {
return this._cameraType === "perspective"
? new PerspectiveCamera(this._fov, 1, 100, 1e6)
: new OrthographicCamera(-0.5, 0.5, 0.5, -0.5, 100, 1e6);
? new PerspectiveCamera(this._fov, 1, 0.1, 1e4)
: new OrthographicCamera(-0.5, 0.5, 0.5, -0.5, 0.1, 1e4);
}

pan(dx: number, dy: number): void {
Expand Down

0 comments on commit f83df92

Please sign in to comment.