solid-three icon indicating copy to clipboard operation
solid-three copied to clipboard

Fix aspect-ratio of current camera

Open bigmistqke opened this issue 2 months ago • 0 comments

Currently the aspect-ratio of the current camera of the scene is automatically set only when resizing the canvas and on the initial render via a ResizeObserver. This causes unexpected behavior when setting a <T.Camera /> to current camera, where it defaults the aspect-ratio to 1 / 1.

In react-three-fiber they update the camera whenever it is set via contrext and bail out of automatic aspect-ratio update when the manual-property is set to true.

bigmistqke avatar Nov 08 '25 15:11 bigmistqke