Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...
    • 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.

      Parameters

      • canvas: HTMLCanvasElement

      Returns PerspectiveCamera