X Tutup
Skip to content

Fix shader compilation errors in Compatibility when using depth_texture#110241

Merged
Repiteo merged 1 commit intogodotengine:masterfrom
Calinou:compatibility-shader-fix-depth-buffer
Sep 22, 2025
Merged

Fix shader compilation errors in Compatibility when using depth_texture#110241
Repiteo merged 1 commit intogodotengine:masterfrom
Calinou:compatibility-shader-fix-depth-buffer

Conversation

@Calinou
Copy link
Member

@Calinou Calinou commented Sep 3, 2025

Globals were defined too early, which means some uniforms were not available at the point they were defined in.

I tested rendering on the MRP as well as many demo projects, and it works as expected.

…ure`

Globals were defined too early, which means some uniforms were not available
at the point they were defined in.
@Calinou Calinou requested a review from a team as a code owner September 3, 2025 22:35
@clayjohn clayjohn added this to the 4.6 milestone Sep 4, 2025
@clayjohn clayjohn added the cherrypick:4.5 Considered for cherry-picking into a future 4.5.x release label Sep 4, 2025
@gitsomebit
Copy link

any chance this still makes it into 4.5?

@Calinou
Copy link
Member Author

Calinou commented Sep 4, 2025

any chance this still makes it into 4.5?

We're entering RC stage soon, so only critical fixes should make it to 4.5 now. We want to avoid any possible regressions at this point.

This can be cherry-picked to 4.5.x in any case.

@Repiteo Repiteo merged commit 50ba014 into godotengine:master Sep 22, 2025
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Sep 22, 2025

Thanks!

@akien-mga
Copy link
Member

Cherry-picked for 4.5.2.

@akien-mga akien-mga removed the cherrypick:4.5 Considered for cherry-picking into a future 4.5.x release label Jan 8, 2026
@Calinou Calinou deleted the compatibility-shader-fix-depth-buffer branch February 10, 2026 17:53
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.

Compatibility Shader Fails to Compile When Depth Buffer Used Inside Function

5 participants

X Tutup