Skip to content

Sanitize INF/NaN when copying last frame texture for SSIL/SSR.#112732

Merged
Repiteo merged 1 commit into
godotengine:masterfrom
blueskythlikesclouds:ssr-sanitize-inf-nan
Nov 13, 2025
Merged

Sanitize INF/NaN when copying last frame texture for SSIL/SSR.#112732
Repiteo merged 1 commit into
godotengine:masterfrom
blueskythlikesclouds:ssr-sanitize-inf-nan

Conversation

@blueskythlikesclouds
Copy link
Copy Markdown
Member

Fixes #112418.

I made this behavior optional in copy_to_rect to not cause potential side effects in other places that use the function, but I can force it if desired.

Copy link
Copy Markdown
Member

@clayjohn clayjohn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! This is already what happens when generating mipmaps, so should be fine.

@Repiteo Repiteo merged commit 6d060b0 into godotengine:master Nov 13, 2025
20 checks passed
@Repiteo
Copy link
Copy Markdown
Contributor

Repiteo commented Nov 13, 2025

Thanks!

@blueskythlikesclouds blueskythlikesclouds deleted the ssr-sanitize-inf-nan branch January 15, 2026 09:15
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.

[4.6-dev3] SSR Glitch with Half Size disabled in project setting

4 participants