Skip to content

Light clustering issue #16

Description

@omd24

I noticed a rare issue with clustered spotlights which only appears at certain positions and orientations.

image
The issue can be reproduced using following camera position and orientation (replace the following code in BindlessDeferred::InitializeScene() line 1063:

    camera.SetPosition(Float3(3.49f, 1.76f, 0.49f));
    camera.SetXRotation(-0.26f);
    camera.SetYRotation(4.7f);

image

I also noticed, setting the scaleCorrection to 1.0f in BindlessDeferred::UpdateLights() before calculating light bounds, "fixes" the issue (though from your comment on it, this probably causes other issues due to inaccurate bounds ^^)

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions