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

Detect and report if 2D particles use the screen SDF #69735

Merged
merged 1 commit into from
Dec 8, 2022

Conversation

clayjohn
Copy link
Member

@clayjohn clayjohn commented Dec 7, 2022

This ensures that the SDF is updated even if not used in a canvas_item shader

Fixes an issue reported by Calinou in #48894 (comment)

In current master the screen SDF is only updated if there is a canvas_item shader visible that uses the SDF. We also need to update the SDF when a 2D particles node uses it for collisions. But this isn't checked as early in the pipeline, so we need to pass the r_sdf_used variable deeper into the pipeline to check.

CC @Calinou

This ensures that the SDF is updated even if not used in a canvas_item shader
@akien-mga akien-mga merged commit 60d7525 into godotengine:master Dec 8, 2022
@akien-mga
Copy link
Member

Thanks!

@clayjohn clayjohn deleted the Particles2D-sdf branch December 15, 2022 15:51
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.

3 participants