Skip to content

Commit

Permalink
chore: remove default camera perspective
Browse files Browse the repository at this point in the history
  • Loading branch information
Naibuu committed May 6, 2024
1 parent f1d79a1 commit 29f79ec
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,9 @@ export class StandaloneModelViewer {
alpha: options.alpha ?? false,
antialias: options.antialias ?? false,
})

this.renderer.setPixelRatio(window.devicePixelRatio)
this.camera = new PerspectiveCamera(70, 2, 0.1, 1000)
this.camera.position.x = -20
this.camera.position.y = 20
this.camera.position.z = -20

this.camera.updateProjectionMatrix()
this.controls = new OrbitControls(this.camera, canvasElement)
Expand Down

0 comments on commit 29f79ec

Please sign in to comment.