Skip to content

Fix aspect-ratio of current camera #44

@bigmistqke

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions