From 30ab4bd97d6121635cb735e5f431caa66f49416a Mon Sep 17 00:00:00 2001 From: Kris Baumgartner Date: Thu, 7 Nov 2024 13:30:56 -0500 Subject: [PATCH] fix: remove opinionated defaults from default camera --- packages/fiber/src/core/renderer.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/fiber/src/core/renderer.tsx b/packages/fiber/src/core/renderer.tsx index b6ba85ac84..9f64d5c3a9 100644 --- a/packages/fiber/src/core/renderer.tsx +++ b/packages/fiber/src/core/renderer.tsx @@ -235,8 +235,8 @@ export function createRoot( 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) {