Skip to content

Commit

Permalink
🎈 perf: Change camera property "far" to 1e6.
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangechen committed Jan 27, 2024
1 parent 57be6b6 commit eab0887
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, 0.0001, 1e10)
: new OrthographicCamera(-0.5, 0.5, 0.5, -0.5, 0.0001, 1e10);
? new PerspectiveCamera(this.#fov, 1, 0.0001, 1e6)
: new OrthographicCamera(-0.5, 0.5, 0.5, -0.5, 0.0001, 1e6);
}

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

0 comments on commit eab0887

Please sign in to comment.