Skip to content

Commit

Permalink
fix: remove opinionated defaults from default camera
Browse files Browse the repository at this point in the history
  • Loading branch information
krispya committed Nov 7, 2024
1 parent 451d68d commit 30ab4bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/fiber/src/core/renderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,8 @@ export function createRoot<TCanvas extends HTMLCanvasElement | OffscreenCanvas>(
const camera = isCamera
? (cameraOptions as Camera)
: orthographic
? new THREE.OrthographicCamera(0, 0, 0, 0, 0.1, 1000)
: new THREE.PerspectiveCamera(75, 0, 0.1, 1000)
? new THREE.OrthographicCamera()
: new THREE.PerspectiveCamera()
if (!isCamera) {
camera.position.z = 5
if (cameraOptions) {
Expand Down

0 comments on commit 30ab4bd

Please sign in to comment.