Skip to content

Adding/Removing lights can cause meshes to fail frustum tests #71

Closed
@csvurt

Description

@csvurt

When a <light> is added to and then removed from a <group> that also contains a <mesh> element that mesh will fail subsequent frustum tests and get culled (ie. not rendered). This also happens if the object is referenced through a <model> element and applies to all children of the affected group node too.

The bug doesn't occur if the light is added and removed inside its own element, it seems to only affect meshes and meshes of child groups inside the same group as the light.

Below is a test scene, instructions for reproducing the bug are included.
https://www.dropbox.com/s/xdsl2lzr90nekyt/lightbug.zip?dl=0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions