Build a fresh PerspectiveCamera configured with the FOV /
near / far defaults from config.renderingControls.defaults, sized
for canvas.clientWidth × clientHeight (falls back to
window.innerWidth × innerHeight when the canvas hasn't been laid
out yet), positioned at config.camera.initialPosition.
Mirrors the original setupCamera() body byte-for-byte; the canvas
is the only thing the helper needs from the SceneManager.
Build a fresh
PerspectiveCameraconfigured with the FOV / near / far defaults fromconfig.renderingControls.defaults, sized forcanvas.clientWidth × clientHeight(falls back towindow.innerWidth × innerHeightwhen the canvas hasn't been laid out yet), positioned atconfig.camera.initialPosition.Mirrors the original
setupCamera()body byte-for-byte; the canvas is the only thing the helper needs from the SceneManager.