Skip to content

Fix aspect-ratio of current camera #44

Description

@bigmistqke

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions