Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix instance index in forward clustered shader #54405

Merged
merged 1 commit into from
Oct 30, 2021

Conversation

JFonS
Copy link
Contributor

@JFonS JFonS commented Oct 30, 2021

  • Instance index needs to be sent to the fragment shader after applying the offset.
  • The subgroupBroadcastFirst optimization was causing issues (see image) so I dropped it. I understand the idea is to have the instance ID in a SGPR, but I don't think that can be done. There's nothing enforcing pixels in a group to all be part of the same instance, so it's bound to break eventually.

image

Fixes #54384

@JFonS JFonS added this to the 4.0 milestone Oct 30, 2021
@JFonS JFonS requested a review from reduz October 30, 2021 01:19
@JFonS JFonS requested a review from a team as a code owner October 30, 2021 01:19
@Calinou Calinou added the bug label Oct 30, 2021
@williamd67
Copy link
Contributor

Tested this commit and it indeed fixes the reported issue #54384

@akien-mga akien-mga merged commit 6b0b1a4 into godotengine:master Oct 30, 2021
@akien-mga
Copy link
Member

Thanks!

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

Successfully merging this pull request may close these issues.

Vulkan: Incorrect shadows when moving camera in scene with lightmap
5 participants