Skip to content

Multiviewpoint example creates a new camera every frame #250

@marwie

Description

@marwie

Page: https://sparkjs.dev/examples/multiple-viewpoints/index.html

See screenshot below, the page has been running for a few seconds and it appears to create a new perspective camera every frame despite the example viewport camera being passed in

Image

Instead of instanceOf you probably want to check for isCamera (or isPerspectiveCamera)

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